JSF 2.0
JSF 2.0 is out.
But there is still no maven love here: https://maven-repository.dev.java.net/nonav/repository/javax.faces/jars/
But over at JBoss we have something
close:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<dependency> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.0.0-PR2_3</version> </dependency> <dependency> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.0.0-PR2_3</version> </dependency> |
is in this repository:
1 2 3 4 5 6 7 8 9 |
<repository> <id>maven.jboss.com</id> <name>jboss Repository for Maven</name> <url>http://repository.jboss.org/maven2</url> </repository> |
Looks like the ManagedBean annotation does not work though. So I tried it with the mojarra jars and did the mvn install:file chacha. Still no go.
So get the source and build the jars yourself.
Update:
After I published the above they pushed a snapshot to the repo. Take a look here:
They are using a different groupId so do this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency> |
Verdict: It still fails the simplest @ManagedBean example.
But I got it to finally work by doing a jetty:run-war instead of jetty:run.
Please give the 2.0.0 RC2 release (released as of today) a shot. The annotation processing no longer requires a standard war format so jetty:run should work.