Hints for Using Maven

Checking the Java Runtime of Eclipse

[[might be easier to just ignore this section until the problem acutally happens]]

moved, see here.

Eclipse freezes the first time when enabling dependency management 

We observed several times that Eclipse freezes when enabling the maven dependency manager for the first time. If this happens, we suggest the following: (i) kill Eclipse (ii) start Eclipse again (iii) disable maven dependency management (right click on project, Maven > Disable Dependency Management) (iv) enable maven dependency management again. In the second try, things usually work.

Useful commands, hints

  • You can find the  the Project Object Model description (the pom.xml) in the main folder of the matsim project.
  • You can find a bunch of Maven documentation at http://books.sonatype.com/maven-book/index.html
  • Run maven with one of the default maven phases which are documented at maven.apache.org/guides/getting-started/maven-in-five-minutes.html with the following command: mvn phasename
  • To skip the tests use the -DskipTests option (former: -Dmaven.test.skip=true option)
  • To create a jar containing all library classes execute mvn assembly:assembly
  • There is an issue with the jogl library unter maven.  There is, however, a maven path for native library.  Setting this path to the jogl library path fixes the problem for the time being.  (This will work as long as we have at most one native library.)