3
How do I create a Maven project with JSF, Primefaces, and Apache Tomcat so that it runs on both Eclipse and Netbeans without problems? (Preferably with the latest versions of the technologies)?
3
How do I create a Maven project with JSF, Primefaces, and Apache Tomcat so that it runs on both Eclipse and Netbeans without problems? (Preferably with the latest versions of the technologies)?
4
Create your project using Maven.
Both Eclipse and Netbeans respect the Maven format so you can have both environments.
This project here does not use JSF, but is done with Maven : http://uaihebert.com/aplicacao-web-completa-angular-twitter-bootstrap-spring-mvc-data-e-security/
Download the source code and have it imported in both Eclipse and Netbeans, both of which can understand the project.
Just be careful, when using an SVN or GIT versioner, not to save the specific files from each IDE, such as the file. project that the eclipse creates. They are not necessary for the operation of the project.
Another detail is that for Maven to run correctly in eclipse it is necessary to install a plugin. In the same post shows how to configure Maven with Eclipse.
I’ll take a look at your link and get back to you. But one thing you said is not exactly true, creating a Maven in netbeans, for example, doesn’t make it valuable in eclipse. I tried this yesterday, probably because the eclipse did not support Tomcat 8. But I managed to do the reverse by creating in eclipse and importing in netbeans.
Note that I didn’t say about creating a project through the IDE. It may be that the IDE adds its own files. Study at least the basics of Maven so you can know what it really needs, once you master this you will know what the netbeans added the most in the project.
Browser other questions tagged java eclipse jsf java-ee netbeans
You are not signed in. Login or sign up in order to post.
I don’t know if this is the best way, but I was able to create the project in eclipse, I made some basic configurations in project facets, then I imported it through netbeans passing the eclipse Workspace and then taking the project. I added the first faces by netbeans and the eclipse responded correctly afterwards. Apparently functional.
– GarouDan
curiosity: why do you intend to use two development environments at the same time? at first, does not seem to be a good idea =D
– Marcelo Bezerra bovino
@Marcelobezerra, I saw in practice that Ides have distinct advantages and disadvantages. It is time to use one, time another. Also, this would allow me to use the standard IDE of the work, for example, and do some other things in the other, when I needed.
– GarouDan