jQuery in Action, 3rd edition
The moose likes JSF and the fly likes Maven web project dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Maven web project dependencies" Watch "Maven web project dependencies" New topic

Maven web project dependencies

Marcos Vidolin

Joined: May 10, 2011
Posts: 28
Hi everybody,

I've just started a project (JSF2+Facelets+RichFaces4+Spring3+Tomcat6) with Maven, but when I run the project I have the error bellow.

I include the dependencies, but JSF not working.

This is my pom.xml

Does anybody can help me, please?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I believe that your scope for JSF-api and JSF-impl should be "compile", not "runtime".

Also, you can save making people edit the POM by setting up Maven profiles for Tomcat and non-Tomcat targets and put the appropriate dependencies in each.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
subject: Maven web project dependencies
It's not a secret anymore!