Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run the command mvn eclipse:eclipse

Tags:

eclipse

maven

I'm following these instructions, but having problems with running commands like mvn eclipse:eclipse.

How and where shall I run the command?

My setup:

  • Windows 7 32bit
  • Eclipse Java EE IDE for Web Developers.
  • Version: Juno Service Release 2
  • Build id: 20130225-0426
  • m2e - maven integration for eclipse v 1.3.0

I installed the m2e via the plugin installation in Eclipse.

like image 621
ulkas Avatar asked Mar 26 '13 09:03

ulkas


People also ask

What does mvn Eclipse Eclipse?

The mvn eclipse:eclipse command reads your pom file and creates Eclipse projects with correct metadata so that Eclipse will understand project types, relationships, classpath, etc.


2 Answers

Right click on the project

->Run As --> Run configurations.

Then select Maven Build

Then click new button to create a configuration of the selected type. Click on Browse workspace (now is Workspace...) then select your project and in goals specify eclipse:eclipse

like image 200
PSR Avatar answered Sep 20 '22 23:09

PSR


The m2e plugin uses it's own distribution of Maven, packaged with the plugin.

In order to use Maven from command line, you need to have it installed as a standalone application. Here is an instruction explaining how to do it in Windows

Once Maven is properly installed (i.e. be sure that MAVEN_HOME, JAVA_HOME and PATH variables are set correctly): you must run mvn eclipse:eclipse from the directory containing the pom.xml.

like image 21
kostja Avatar answered Sep 20 '22 23:09

kostja