ICEfaces-3.0-EE Sample Applications

The EE sample applications can be compiled using Apache Maven available here, http://maven.apache.org/download.html.

In order to successfully build the project please follow the following steps:

1)  Make sure that you have Maven and Ant installed and configured in your environment.
2)  From the root of the ICEfaces EE installation directory, there is a maven2 directory.  In that directory:

    a) Update the local.repository property so that the path maps to your local Maven repository
    b) From that directory, run the default ant build target that packages and installs the appropriate ICEfaces libraries into the your local Maven repository:

    [icefaces-ee-install-dir]/maven2 > ant

3)  Once all the libraries have been packaged and installed into your local Maven repository, you can use Maven to package the sample applications.  From inside the directory for the sample application you are interested in, you can build the .war file using Maven:

[icefaces-ee-install-dir]/samples/composite-comps-showcase > maven package -P servlet-profile
[icefaces-ee-install-dir]/samples/eps/poll > maven package -P servlet-profile

Note: There are two profiles for each example:
- The "servlet-profile" which packages the JSF libraries (jsf-*.jar files) into the .war for deployment on application servers like Tomcat that don't already provide the JSF libraries.  This is the default profile.

- The "web-profile" which excludes the JSF libraries (jsf-*.jar files) from the .war for deployment on application servers like Glassfish 3 that do provide the JSF libraries.
