Try out Mojarra 2.2.0-SNAPSHOT Blog
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.
<repository>
<id>jvnet-nexus-snapshots</id>
<name>jvnet-nexus-snapshots</name>
<url>https://maven.java.net/content/repositories/snapshots/</url>
</repository>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Once you download the javax.faces.jar
, you must take some steps to install it in GlassFish 3.1 or 3.1.1.
Remove
jsf-api.jar
andjsf-impl.jar
from themodules
directory.Put
javax.faces.jar
in themodules
directory.You must modify the
default-web.xml
file indomains/domain1/config
andlib/templates
. In each directory, remove any mention ofjsf-api.jar
andjsf-impl.jar
from thedefault-web.xml
file. 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