How can I create a Maven project with JSF, Primefaces and Apache Tomcat so it runs in both Eclipse and Netbeans without any problems? (Preferably with the latest versions of the technologies)?
How can I create a Maven project with JSF, Primefaces and Apache Tomcat so it runs in both Eclipse and Netbeans without any problems? (Preferably with the latest versions of the technologies)?
Create your project using Maven.
Both Eclipse and Netbeans respect the Maven format and you will be able to have both environments.
This project here does not use JSF, but it's done with Maven: link
Download the source code and have it imported into both Eclipse and Netbeans, so you can both understand the project.
Just be careful, when using an SVN or GIT version, not to save files specific to each IDE, such as the .project file that eclipse creates. They are not required for project operation.
Another detail is that for Maven to run correctly in eclipse it is necessary to install a plugin. In that same post it shows how to configure Maven with Eclipse.