We are starting to have support for maven 2 for building org.lcsim.
This is a cheat sheet for building org.lcsim with maven 2.
Prerequisites
Command line
The proper command to run maven2 is "mvn". Before building, you have to create a symbolic link from pom2.xml
to pom.xml
. In Unix derivates you would go about it like this:
ln -s pom2.xml pom.xml
You can now build org.lcsim with maven2.
mvn
If you want to skip the tests, use
mvn -Dmaven.test.skip=true
Eclipse integration
First, we have to inform Eclipse where to find the maven repository.
mvn -Declipse.workspace=<eclipse workspace dir> eclipse:add-maven-repo
You will have to restart Eclipse after running this command.
Next, make sure that org.lcsim builds. When building and testing has finished, issue
mvn eclipse:clean mvn eclipse:eclipse
This will download all dependencies and put the correct paths into the Eclipse .project file. Upon refreshing the project, you should now have code completion working.
Eclipse plug-in
Plug-ins for Eclipse are available from the Maven2 homepage. We have tested the Q plug-in and can confirm it works with maven 2.0.7. Please follow the installation instructions on the web page for the plug-in.
After installing the plug-in, you are now able to build org.lcsim from within Eclipse.