Building and deploying Web Content Application 2 from source has the following prerequisites:
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