Maven
- Navigate to the root directory of the tutorial project. The same directory as 'pom.xml'.
- Run the command
mvn package -P servlet
if building for Tomcat, ormvn package -P app
if building for Glassfish (or another JSF-providing app-server). - Maven will begin downloading the dependencies specified in the POM. Once the dependencies have been installed to your local repository, compilation will begin.
- If compilation finished without error, the prepared application, "example-named-tutorial.war" will be located in the "target" project subdirectory.
Ant
- Navigate to the parent directory of the tutorial project. The same directory as "common.xml".
- Open common.xml and replace the value of the
<property>
tag named "icefaces.base.dir" with the path to your local ICEfaces source bundle. If this build is located as part of an ICEfaces bundle, skip this step. - Navigate to the tutorial directory. The same directory as "build.xml".
- Run the command
ant servlet-profile
if building for Tomcat, orant web-profile
if building for Glassfish (or another JSF-providing app-server). - Ant will begin copying in dependencies and compiling the source files. If compilation is successful a war file will be generated in ".../tutorial/build/dist/" with the same name as the tutorial directory.