File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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: 17282

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:
subject: Maven web project dependencies
jQuery in Action, 3rd edition