go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Import into Eclipse IDE
 
Subject: Import into Eclipse IDE
Author: Alex_Raj
In response to: What have been done?
Posted on: 03/27/2012 08:25:47 PM

You can import it into Eclipse IDE now.

File -> ImportÂ… -> General -> Existing Projects into Workspace:

1)Type in your project folder in the Select root directory box: C:\HelloWorld\Maven\MyFirstProject\MyProject

2)Check Copy projects into workspace checkbox.

3)Click on Finish button.


 

> On 03/27/2012 07:43:08 PM Alex_Raj wrote:


Two files have been created for your project:

.project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
  <name>MyProject</name>
  <comment>NO_M2ECLIPSE_SUPPORT: Project files created 
with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
  <projects/>
  <buildSpec>
    <buildCommand>
      <name>org.eclipse.jdt.core.javabuilder</name>
    </buildCommand>
  </buildSpec>
  <natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
  </natures>
</projectDescription>



.classpath

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
  <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
  <classpathentry kind="output" path="target/classes"/>
  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
</classpath>


It should be noted a classpath variable M2_REPO has been referenced which must be declared in your Eclipse project build path.




References:

 


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