Maven2 Support for ICEfaces EE

Building the Libraries
----------------------

Binary distribution:  The various libraries have been prebuilt. The Ant build file is designed to install the existing libraries into the local Maven repository identified in the ee-build.properties file.

Source distribution: If this is a source distribution, you will need to build the jars first so they are residing in the
lib directories of their respective folders.  From the top level of the source distribution you can use ant to do this:

icefaces-ee-install-dir> ant clean.build.projects


Installing to Local Maven Repository
------------------------------------

The following utilities are provided for installing the various ICEfaces EE libraries to your local Maven repository:

1) Edit the ee-build.properties file and set the local.repository property to the path of your local Maven repository.

2) From the maven2/ directory (where this readme.txt is located), you can use Ant to install all the relevant libraries into the local repository directory:

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

Note: This ant target depends on the "get-maven" target, which attempts to get a remote copy of the jar required to run Maven from an Ant build file.

Note: If the first install attempt fails, try it again and it will usually work.

It's also possible to use the Maven command line directly and install the libraries you require directly.  For example:

icefaces-ee-install-dir/maven2> mvn install:install-file -Dfile=../eps/eps/lib/eps.jar -DpomFile=icefaces.pom


Each sample has it's own build pom and you can run >mvn clean package to create 2 different profiles
See which one in the pom is the default.  (either Tomcat6 or Glassfishv3 for now-->really just builds with 
jsf2 jars (tomcat) or without (glassfish).
You could also use the mvn command line (or your IDE) to install for example in command-line from this directory:-
> mvn install:install-file -Dfile=../lib/icefaces.jar -DpomFile=icefaces.pom

...or >mvn clean package -Ptomcat6 
(which runs the correct profile for a server which doesn't already contain the jsf jars).



