Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'gpg.exe' is not recognized as an internal or external command, operable program or batch file - Maven Release Plugin

I just got my free Sonatype Maven repo and have been attempting to do a release. However whilst trying to do this I get an error when maven-gpg-plugin attempts to sign artifacts.

I get a ton of asterisks showing beforehand and I just press enter and then I get this issue, here's my full log: http://pastebin.com/GkLbFgBF

Here are the command line parameters I am attempting to use clean install javadoc:javadoc javadoc:jar source:jar release:clean release:prepare release:perform

I installed gpg4win thinking that might solve this but it hasn't.

like image 833
Keir Nellyer Avatar asked May 18 '14 17:05

Keir Nellyer


People also ask

How do you fix CMD is not recognized as an internal or external command?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

What is not recognized as an internal or external command operable?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues. Launch a Command Prompt window on your PC.

What is not recognized as an internal or external command operable program or batch file android studio?

So, all one needs to do is to open Android Studio, click on File>Settings. In the next window, under Tools, click on Terminal. Then enter the complete location to adb in the Start Directory. Restart Android Studio and your adb command should execute now.


1 Answers

As each system is differently configured the following steps works in some cases.

when you receive this error message, “gpg is not recognized as an internal or external command” then you need to update your PATH variable.

To do this without reboot:

  1. Open up a command prompt window
  2. Paste this in:

    SET PATH=%PATH%;C:\Program Files (x86)\GNU\GnuPG
    
  3. Hit Enter

like image 160
Nahush Avatar answered Sep 25 '22 22:09

Nahush