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:
<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:
<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:
<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.
















Development notes by Gene De Lisa on topics relating to
Java and various open source projects such as
the Spring Framework, Hibernate and others.
1 person has left a comment
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.