This page gives instructions for building the base Emmet WAR file. Instructions for building the site documentation are also included.
Before you do this, you will need to setup the relevant build tools and IDE. Please refer to the generic tool setup instructions.
Emmet depends on Maven artifacts from Chico, so you need to checkout and build Chico as described here before building Emmet.
To perform a clean build of the Emmet WAR file, do the following:
mvn -Dmaven.test.skip=true clean package
The WAR files will be created in the "target" subdirectories of the respective "webapp" and "demosite" modules.
The "-Dmaven.test.skip=true" tells Maven to skip the running of unit and system tests. Some unit tests will inevitably fail unless you have set up your test environment, and this will cause the build to fail.
This page describes the how you can capture site-specific configuration and tailorings as a custom site project. If you have done this, the steps for creating the WAR file for the project would be as follows:
mvn -Dmaven.test.skip=true install
mvn clean package
To build the Maven site for the project, do the following:
mvn -o site
This will give you a local copy of the documentation tree in the "target/site" subdirectory.
The "-o" option causes Maven to not attempt to refresh the bundles for Emmet's external dependencies. This speeds up the site build, at the expense of not generating all dependencies.
mvn site-deploy
You can browse the "target/site" tree in-place by providing a suitable "file:" URL to your web browser. However the hyperlinks between the parent package and the child packages won't resolve correctly unless the HTML is deployed to its proper place.
To address this and similar issues, the Maven site plugin also allows you to Stage a site to a staging webserver.