If you want to try out the absolute latest Mojarra 2.2-SNAPSHOT, you can run it on GlassFish 3.1 or GlassFish 3.1.1. To install it, grab the 2.2.0-SNAPSHOT version of Mojarra from this repository.



Once you download the javax.faces.jar, you must take some steps to install it in GlassFish 3.1 or 3.1.1.

  1. Remove jsf-api.jar and jsf-impl.jarfrom the modules directory.

  2. Put javax.faces.jar in the modulesdirectory.

  3. You must modify the default-web.xml file indomains/domain1/config and lib/templates. In each directory, remove any mention of jsf-api.jarand jsf-impl.jar from the default-web.xmlfile. In place of the two jars, add a reference tojavax.faces.jar.

Once Mojarra 2.2.0-SNAPSHOT has been installed in your GlassFish 3.1.1 or GlassFish 3.1 container, you can use the 2.2-SNAPSHOT verson of the javax.faces-war-archetype, which is just like the previous one except that it depends on the 2.2-SNAPSHOT version of the JSF API. You must always include the-DarchetypeRepository argument to mvn because SNAPSHOT artifacts are never pushed to maven central.

mvn archetype:generate -DarchetypeGroupId=javax.faces -DarchetypeArtifactId=javax.faces-war-archetype -DarchetypeVersion=2.2-SNAPSHOT -DarchetypeRepository=https://maven.java.net/content/repositories/snapshots/


This blog entry signifies the culmination of the effort of many individuals from many disciplines over the years. I would like to thank them all for finally allowing official Java jars to flow into Maven Central.

Technorati Tags: edburns