Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Maven web project dependencies  RSS feed

 
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
Bartender
Posts: 18662
71
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
Boost this thread!