Category: JSF, Maven Gene De Lisa @ 11:35 am —
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

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.

1 person has left a comment

#1

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.

Ryan Lubke wrote on October 12, 2009 - 10:05 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.