Maven Group, Artifact, and Version (GAV)
All official JSF Specification and Mojarra implementation artifacts for JSF 2.0 and later are now published in maven central. If you want to explicitly specify a repository, you may use one of the following. Note that these repositories offer a smaller number of official JSF specification and Mojarra implementation artifacts than in maven central.
Maven 2 Repository for JSF 2.1 and Later
<repository>
<id>jvnet-nexus-releases</id>
<name>jvnet-nexus-releases</name>
<url>https://maven.java.net/content/repositories/releases/</url>
</repository>
Maven 2 SNAPSHOT Repository for JSF 2.2-SNAPSHOT and Later
<repository>
<id>jvnet-nexus-snapshots</id>
<name>jvnet-nexus-snapshots</name>
<url>https://maven.java.net/content/repositories/snapshots/</url>
</repository>
The Best Way to Satisfy A Dependency on JSF
The recommend way to use JSF with Maven is to develop on a Java EE
certified container and declare a <provided>
scope
dependency on the appropriate version of the Java EE API jar. For
example:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
If you want to depend on the JSF jar directly, use one of these.
- JSF 2.3 (Bundled in GlassFish 5.0.1 series releases)
-
<dependency> <groupId>javax.faces</groupId> <artifactId>javax.faces-api</artifactId> <version>2.3</version> <scope>provided</scope> </dependency>
- JSF 2.2 (Bundled in GlassFish 4.0 series releases)
-
<dependency> <groupId>javax.faces</groupId> <artifactId>javax.faces-api</artifactId> <version>2.2</version> <scope>provided</scope> </dependency>
- JSF 2.1 (Bundled in GlassFish 3.1 series releases)
-
<dependency> <groupId>javax.faces</groupId> <artifactId>javax.faces-api</artifactId> <version>2.1</version> <scope>provided</scope> </dependency>
- Java EE 7 (also satisfies JSF 2.2 compile-time dependencies)
-
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency>
- Java EE 6 (also satisfies JSF 2.0 compile-time dependencies)
-
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency>
- Java EE 5 (also satisfies JSF 1.2 compile-time dependencies)
-
<dependency> <groupId>javaee</groupId> <artifactId>javaee-api</artifactId> <version>5</version> <scope>provided</scope> </dependency>
Depending only on the API jar will increase the chance that your application will actually deliver on the promise of Java EE portability.
Another, Not Nearly as Correct, Way to Satisfy A Dependency on JSF
If you have no other choice but to introduce a dependency on a specific implementation of JSF (namely, Oracle Mojarra JSF), use the maven GAV as specified below.
Nightly Builds of Mojarra
Mojarra 2.3.x and 2.2.X are also being actively developed. Here are the GAV for the nightly 2.3.x and 2.2.X builds. Replace the X with the version number of the latest stable verion below, incremented by 1. For example, if the latest stable 2.2 release was 2.2.8, the version for the nightly would be 2.2.9-SNAPSHOT.
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.3.X-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.2.X-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.1.X-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Stable Versions of Mojarra
Current Release
The version numbers of the most current release are always on the jsf home page at http://javaserverfaces.java.net/.
-
2.3.x releases
- Download https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.3.8/javax.faces-2.3.8.jar
- Release notes page at 2.3/releasenotes.html
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.3.x</version> </dependency>
-
2.2.x releases
- Download https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.2.8/javax.faces-2.2.8.jar
- Release notes page at 2.2/releasenotes.html
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.2.x</version> </dependency>
-
2.1.x releases
- Download page at https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.1.24/javax.faces-2.1.24.jar
- Release notes page at 2.1/releasenotes.html
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.1.x</version> </dependency>
-
2.0.11 (02/13/2013)
- 2.0.11 binary
- 2.0.11 sources
- 2.0.11 Release Notes
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.0.11</version> </dependency>
- 1.2_16 (01/16/2013)
Archived Releases
For all archived releases you must declare two
<dependency>
elements, both with
<groupId>com.sun.faces</groupId>
. For all JSF
2.0 and later artifacts you may follow the example GAV listed in the
entry for 2.1.1. For all JSF 1.2 and earlier artifacts, you may follow
the example GAV listed in the entry for 1.2_14.
-
2.1.2 - and beyond
See here
-
2.1.1 (04/04/2011)
- 2.1.1 binary bundle
- 2.1.1 source bundle
- 2.1.1 Release Notes
- Maven GAV
<dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.1.1-b04</version> </dependency>
<dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.1.1-b04</version> </dependency>
-
2.1.0 (03/02/2011)
- 2.1.0 binary bundle
- 2.1.0 source bundle
- 2.1.0 Release Notes
- maven version:
<version>2.1.0-b11</version>
-
2.0.10 (12/18/2012)
- 2.0.10 binary
- 2.0.10 sources
- 2.0.10 Release Notes
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.0.10</version> </dependency>
-
2.0.9 (02/08/2012)
- 2.0.9 binary
- 2.0.9 sources
- 2.0.9 Release Notes
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.0.9</version> </dependency>
-
2.0.8 (01/13/2012)
- 2.0.8 binary
- 2.0.8 sources
- 2.0.8 Release Notes
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.0.8</version> </dependency>
-
2.0.7 (12/22/2011)
- 2.0.7 binary
- 2.0.7 sources
- 2.0.7 Release Notes
- Maven GAV
<dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.0.7</version> </dependency>
-
2.0.6 (06/03/2011)
- 2.0.6 binary bundle
- 2.0.6 source bundle
- 2.0.6 Release Notes
- maven version:
<version>2.0.6</version>
-
2.0.5 (05/06/2011)
- 2.0.5 binary bundle
- 2.0.5 source bundle
- 2.0.5 Release Notes
- maven version:
<version>2.0.5</version>
-
2.0.4 (01/13/2011)
- 2.0.4 binary bundle
- 2.0.4 source bundle
- 2.0.4 Release Notes
- maven version:
<version>2.0.4-b09</version>
-
1.2_15 (09/24/2010)
- 1.2_15 binary
- 1.2_15 source
- Maven GAV
<dependency> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> <version>1.2_15</version> </dependency>
<dependency> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> <version>1.2_15</version> </dependency>
-
2.0.3 (07/1/2010)
- 2.0.3 binary bundle
- 2.0.3 source bundle
- 2.0.3 Release Notes
- maven version:
<version>2.0.3-b05</version>
-
2.0.2 (12/10/209)
- 2.0.2 binary bundle
- 2.0.2 source bundle
- 2.0.2 Release Notes
- maven version:
<version>2.0.2-b10</version>
-
2.0.1 (10/22/2009)
- 2.0.1 FCS binary
- 2.0.1 FCS source
- 2.0.1 Release Notes
- maven version:
<version>2.0.1-b02</version>
-
2.0.0 (10/19/2009)
- 2.0.0 FCS binary
- 2.0.0 FCS source
- 2.0.0 RC2 Release Notes
- maven version:
<version>2.0.0-b23</version>
-
1.2_14 (12/18/2010)
- 1.2_14 binary
- 1.2_14 source
- 1.2_14 Release Notes
- Maven GAV
<dependency> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> <version>1.2_14</version> </dependency>
<dependency> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> <version>1.2_14</version> </dependency>
-
1.2_13 (07/7/2010)
- 1.2_13 binary
- 1.2_13 source
- 1.2_13 Release Notes
- maven version:
<version>1.2_13</version>
-
1.2_12 (01/16/2010)
- 1.2_12 binary
- 1.2_12 source
- 1.2_12 Release Notes
- maven version:
<version>1.2_12</version>
-
1.2_11 (12/19/2008)
- 1.2_11 binary
- 1.2_11 source
- 1.2_11 Release Notes
- maven version:
<version>1.2_11-FCS</version>
-
1.2_10 (10/31/2008)
- 1.2_10 binary
- 1.2_10 source
- 1.2_10 Release Notes
- maven version:
<version>1.2_10</version>
-
1.2_09 (07/18/2008)
- 1.2_09 binary
- 1.2_09 source
- 1.2_09 GlassFish Updater
- 1.2_09 Release Notes
- maven version:
<version>1.2_09-b01</version>
-
1.2_08 (02/26/2008)
- 1.2_08 binary
- 1.2_08 source
- 1.2_08 GlassFish Updater
- 1.2_08 Release Notes
- maven version:
<version>1.2_08</version>
-
1.2_07 (12/5/2007)
- 1.2_07 binary
- 1.2_07 source
- 1.2_07 GlassFish Updater
- 1.2_07 Release Notes
- maven version:
<version>1.2_07</version>
-
1.2_06 (11/13/2007)
- 1.2_06 binary
- 1.2_06 source
- 1.2_06 GlassFish Updater
- 1.2_06 Release Notes
- maven version:
<version>1.2_06</version>
-
1.2_05 (10/15/2007)
- 1.2_05 binary
- 1.2_05 source
- 1.2_05 Release Notes
- maven version:
<version>1.2_05</version>
-
1.2_04 P02 (05/23/2007)
- 1.2_04 P02 binary
- 1.2_04 P02 source
- 1.2_04 P02 GlassFish Updater
- 1.2_04 Release Notes
- maven version:
<version>1.2_04-p02</version>
-
1.2_04 P01 (03/20/2007)
- 1.2_04 P01 binary
- 1.2_04 P01 source
- 1.2_04 P01 GlassFish Updater
- 1.2_04 Release Notes
- maven version:
<version>1.2_04-p01</version>
-
1.2_04 (03/5/2007)
- 1.2_04 binary
- 1.2_04 source
- 1.2_04 GlassFish Updater
- 1.2_04 Release Notes
- maven version:
<version>1.2_04</version>
-
1.2_03 (12/4/2006)
- 1.2_03 binary
- 1.2_03 source
- 1.2_03 GlassFish Updater
- 1.2_03 Release Notes
- maven version:
<version>1.2_03</version>
-
1.2_02 (08/25/2006)
- 1.2_02 binary
- 1.2_02 source
- 1.2_02 Release Notes
- maven version:
<version>1.2_02</version>
-
1.2_01 (07/14/2006)
- 1.2_01 binary
- 1.2_01 source
- 1.2_01 Release Notes
- maven version:
<version>1.2_01-B04</version>
-
1.2 (05/2006)
- 1.2 binary
- 1.2 source
- maven version:
<version>1.2</version>
-
1.1_02 (04/24/2006)
- 1.1_02 binary
- 1.1_02 source
- maven version:
<version>1.1_02</version>
-
1.1_01 (09/07/2004)
- 1.1_01 binary
- 1.1_01 source (java Do -classpath . javaserverfaces_source_20040714 to install.)
-
1.1 (05/27/2004)
- 1.1 binary
- 1.1 Source
-
1.0 (03/03/2004)
- 1.0 binary
- 1.0 Source