Berit Larsen
Berit Larsen

Reputation: 752

Maven release not working - "Maven executable not found"

I recently had to get a new computer at work, and reinstall all programming stuff including Maven. Now I'm trying to release a project change, but I can't get Maven Release to work.

  1. I ran mvn release:prepare from Eclipse, and it completed successfully.
  2. I started mvn release:perform from Eclipse, and it failed with a message saying prepare had failed mid-way.
  3. I ran release:prepare from Eclipse again, and now it failed with "Maven executable not found at: C:\Users\bls\Git\events\EMBEDDED\bin\mvn.bat"
  4. I ran mvn release:prepare from cmd prompt, and it completed successfully.
  5. I ran mvn release:perform from cmd prompt, it gave me some questions and failed with "Unable to tag SCM"

-

Still not working. Ideas?

Upvotes: 3

Views: 6520

Answers (2)

PGP
PGP

Reputation: 385

@Progamactor is correct. You need to

  1. Create the mvn.bat at the location maven complains it needs one.
  2. Add the following contents to that batch (mvn.bat):

    @mvn.cmd %*
    

Upvotes: 1

Programactor
Programactor

Reputation: 41

You need to rename the mvn.cmd file into mvn.bat folder. In mvn 3.3.x the structure of maven have changed. The mvn.bat file have been changed into mvn.cmd. But in command line this is not taken into consideration. Hope i have help you with your issue.

Upvotes: 4

Related Questions