Building Web Content Application 2 from Source with Maven-2

Prerequisites

Building and deploying Web Content Application 2 from source has the following prerequisites:

Standard Maven build & install

A full build and installation of all the Web Content Application 2 components into your local Maven repository is done using the standard Maven install goal like the following example:

$ svn checkout http://svn.apache.org/repos/asf/portals/applications/webcontent/trunk webcontent
$ cd webcontent
$ mvn clean install
          

Now you can add dependencies in your project pom.xml files.

When you build from the trunk, the version of the modules installed in your local maven repository will probably have '-SNAPSHOT' suffix. e.g, '2.0-SNAPSHOT'. You should use this version number in dependencies. However, if you want to use a different version number locally for some reason (e.g, '2.0-r1649250' with a specific Subversion revision number instead of '2.0-SNAPSHOT'), then you might want to use Versions Maven Plugin like the following example before building:

$ mvn versions:set -DnewVersion="2.0-r1649250"
$ mvn clean install
          
Note: Do not change it to the official release version numbers (e.g, 2.0, 2.0-rc-1, 2.0-beta-1, etc.) because it can conflict with our official releases!