Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven executable not found

Tags:

maven

Having to do some work with Maven I came across an error message:

"Maven exception: Error configuring command-line. Reason: Maven executable not found at: ...\bin\mvn.bat"
like image 816
Ipsita Tah Avatar asked Jul 14 '15 10:07

Ipsita Tah


People also ask

Where is maven installed?

There is no default installation location for maven. It is distributed as a zip file. If you're sure you have maven on your machine, you need to search where you extracted it. You should search for "mvn.


2 Answers

It seems things have changed in maven 3.3.3, I had the same issue on windows. Looking in the maven bin directory there is no longer a mvn.bat file, but there is a mvn.cmd file. I copied mvn.cmd to mvn.bat and things progressed...

Hope this helps someone.

like image 80
theINtoy Avatar answered Sep 28 '22 00:09

theINtoy


Ensure to

Add the unpacked distribution’s bin directory to your user PATH environment variable

like explained in the Maven Install Documentation.

like image 41
FrVaBe Avatar answered Sep 27 '22 22:09

FrVaBe