Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is mvn.exe when using embedded maven 3 in eclipse indigo?

I'm using the Indigo Release of eclipse. When I check Window -> Preferences, Maven -> Installations, it confirms that it's using the Embedded (3.0.2/...) installation of Maven.

I want to be able to run maven commands from the command line (Windows Powershell), but when I type, e.g.,

PS C:\> mvn

no executable is found. I did a search for "mvn.exe" and found no results.

I suppose I could install a stand-alone version of Maven 3 and add that to my PATH, but I'd prefer to be using the same Maven installation for command line tasks as well as IDE (eclipse) tasks.

So, where is the embedded maven's mvn.exe hiding?

like image 812
MrDrews Avatar asked Jul 22 '11 13:07

MrDrews


People also ask

Where is Mvn EXE?

There is no mvn.exe at all. The Maven distro comes with batch or shell scripts. Eclipse runs an embedded version which is called through an API.

What is embedded Maven in eclipse?

An embedded version of the Maven known as the Maven Embedder is already specified. This is what is used to execute Maven inside of Eclipse. If you have another installation of Maven which you would like to use instead of the Maven Embedder, you can add another Maven runtime by clicking on the Add..

How to execute Maven in Eclipse?

To run the maven project, select it and go to “Run As > Java Application”. In the next window, select the main class to execute. In this case, select the App class and click on the Ok button.


1 Answers

The simple answer is, cause it's embedded in Eclipse so you can't call it from console. If you like to do this you have to install Maven yourself.

like image 182
khmarbaise Avatar answered Sep 21 '22 06:09

khmarbaise