Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get access to (embedded in) Maven console in Eclipse?

Tags:

eclipse

maven

Is possible to access Maven (embedded) console in Eclipse like in shell (linux shell, windows cmd.exe) to run custom maven commands (mvn archetype:create.... etc) ? I'm using m2e, but can run Maven commands only by GUI.

like image 322
marioosh Avatar asked Oct 22 '11 09:10

marioosh


People also ask

Is Maven embedded 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..

What is Maven console in Eclipse?

Maven Console shows the Maven output that normally appears on the console when running Maven from the command line. It is useful to be able to see what Maven is doing and to work with Maven debug output to diagnose issues. Prev : 3.3. Importing Maven Projects. Next : 4.2.


1 Answers

You can run custom maven commands directly from Eclipse by doing:

 Run -> Run Configurations... -> Maven Build

You'll need just some Maven plugin for Eclipse like m2e.

like image 151
Piotr Nowicki Avatar answered Oct 26 '22 21:10

Piotr Nowicki