maven 2 build environment
I've checked into subversion support to enable OpenVPMS to be built using maven 2.
This provides better integration with IDEs than maven 1.
The minimum recommended version is 2.1.0. This can be downloaded from http://maven.apache.org/download.html
For installation instructions, see http://maven.apache.org/download.html#Installation
There are two new projects in svn to support maven 2:
- openvpms - the parent project, used to establish settings common to each project. It can be used to build all projects.
- maven - plugins for maven 2 to load archetypes, data, and report templates.
The 'openvpms' project can be checked out with the command:
svn co svn://svn.openvpms.org/openvpms/openvpms/trunk openvpms
The 'maven' project can be checked out with the command:
svn co svn://svn.openvpms.org/openvpms/maven/trunk maven
Both projects should be at the same directory structure level with the other projects. i.e
openvpms/
framework/
maven/
archetypes/
reports/
....
The following build goals have changed:
maven 1 | maven 2 |
---|---|
jar:install | install |
war:install | install |
hibernate:schema-export | hibernate3:hbm2ddl |
archetype:load | openvpms-archetype:load |
data:load | openvpms-data:load |
report:load | openvpms-report:load |
deploykettle | no equivalent |
dev:install | see below |
The 'dev:install' goal to deploy the web app is replaced by goals provided by the tomcat maven plugin.
For fast deployment of the web app, use the command:
mvn -Dmaven.test.skip tomcat:run
This will start an embedded tomcat server, running on port 8080.
Other tomcat plugin goals are described here: http://mojo.codehaus.org/tomcat-maven-plugin/plugin-info.html
-Tim