Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven web project dependencies

 
Marcos Vidolin
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17987
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic