Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Install the latest version Maven2 Maven 3. Make sure it's installed properly by typing mvn --version.

...

  • Type mvn eclipse:eclipse. This generates Eclipse files automatically.
  • Start Eclipse.
  • Go to Windows|Preferences|Java|Build Path|Classpath Variables and add a M2_REPO variable to point to your local Maven2 Maven repository (usually in ~user/.m2/repository). See also the documentation on the Maven Eclipse plugin.
  • Select Import|Existing Project into Workspace. Point it to the top level directory of the checked-out Cargo sources. You should see something similar to the following figure:

...

Note: Maven supports a nested directory structure whereas Eclipse currently only supports a flat structure. The Maven2 Maven Eclipse plugin creates an Eclipse project per Maven module (i.e. per directory containing a pom.xml file). This means that directories with no pom.xml will not be listed. This is a known issue with Eclipse and Maven. In the future the hope is that Eclipse will support nested project structure.

...