Setting up Eclipse/IntelliJ with maven 2
The following instructions can be used to set up Eclipse and IntelliJ IDEA to work with OpenVPMS.
This assumes that you're working with the latest sources from svn.
Eclipse 3.2+
From the command line, cd into the openvpms directory and run:
mvn eclipse:eclipse
This will take some time while maven downloads all the dependencies.
Eclipse needs to know the path to the local maven repository. This is done by setting the M2_REPO classpath variable by running:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
For more details see:
- http://maven.apache.org/guides/mini/guide-ide-eclipse.html
- http://maven.apache.org/plugins/maven-eclipse-plugin
IntelliJ IDEA
From the command line, cd into the openvpms directory and type:
mvn idea:idea
This will take some time while maven downloads all the dependencies.
For more details, see: http://maven.apache.org/plugins/maven-idea-plugin/