Versions Compared

Key

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

...

C/C++: http://www.eclipse.org/cdt/
Fortran: http://www.eclipse.org/proposals/eclipse-photran/index.html

Classpaths using Maven

Maven can generate the .project and .classpath files for Eclipse. From a maven-based project, execute this command.

No Format

maven eclipse

Now the .classpath file will have all the jars needed by that project.

However, Eclipse does not know where the Maven repository lives. Add a classpath variable to Eclipse from Window -> Preferences -> Java -> Build Path -> Classpath Variable. In Maven 1, this variable should be called MAVEN_REPO. On Linux, it should point to ~/.maven/repository.