Reputation: 49047
I am trying to start a new project in Eclipse with Maven. It is a project that will have both EJB/JPA and JSF technology. I used the webapp archetype create the project. Is correct to use that? And do I need to add some libraries on the buildpath? (Deploying to Glassfish)
Upvotes: 0
Views: 746
Reputation: 92112
Just type "archetype:generate" and select JSF + EJB/JPA if available.
This one seems fine: 360: remote -> org.jboss.weld.archetypes:weld-jsf-jee (Weld archetype for creating a Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1 and JPA 2.0 (persistence unit included))
The Appfuse are quite more complete and may embed stuff you will never use and that you will have to remove.
Upvotes: 0
Reputation: 20800
The maven-archetype-webapp
is perfectly fine to use to get started. It creates the initial folder structure nicely. Another good alternative is to use appfuse-basic-jsf.
As long as your pom.xml has all the dependencies set up correctly, your eclipse build path should be fine. I am assuming you already have m2eclipse plugin installed. If you see that you are seeing errors in eclipse view then right click on the project select Maven->Update Project Configuration
.
Upvotes: 1