GeeCON Prague 2014*
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
Author

Maven web project dependencies

Marcos Vidolin
Greenhorn

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?

thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16103
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Maven web project dependencies