"gpg.exe" is not recognized as an internal or external command after setting up the environment?

[INFO] --- maven-gpg-plugin: 1.4: character (character-artifacts) @ server-test-toolkit --- "gpg.exe" is not recognized as an internal or external command,

I set the path to the environment:

% SystemRoot% \ system32;% SystemRoot%;% SystemRoot% \ System32 \ Wbem;% SYSTEMROOT% \ System32 \ WindowsPowerShell \ v1.0 \; C: \ MinGW \ msys-7.2 \ bin; C: \ Program Files (x86) \ GNU \ GnuPG

I run gpg in cmd.exe in windows, this is normal.

But when running maven-gpg-plugin in eclipse, why does the error still pop up: "gpg.exe" is not recognized as an internal or external command,

+4
source share
2 answers

Reboot solved the problem.

I think Maven runtinme did not update its path after installing GPG. Shutting down and rebuilding may also be sufficient.

+3
source

when you get this error message, "gpg is not recognized as an internal or external command", then you need to update the PATH variable.

To do this without rebooting:

  • Open a command prompt window
  • Insert this into:

    SET PATH=%PATH%;C:\Program Files (x86)\GNU\GnuPG 
  • Press Enter

0
source

Source: https://habr.com/ru/post/1491039/


All Articles