go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Maven -- Import Java project into Eclipse IDE
 
Subject: Maven -- Import Java project into Eclipse IDE
Author: Alex_Raj
Posted on: 03/27/2012 07:21:46 PM

Once you have a Maven generated project, how can you convert it into Eclipse IDE?

Type in the following command where your poject with the pom.xml resides:

mvn eclipse:eclipse


Output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyProject 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyProject >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyProject <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ MyProject ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "MyProject" to C:\HelloWorld\Maven\MyFirstProje
ct\MyProject.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.402s
[INFO] Finished at: Tue Mar 27 17:16:21 PDT 2012
[INFO] Final Memory: 7M/124M
[INFO] ------------------------------------------------------------------------

Replies:


References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.