Archetype for Maven Project
I'd like to start a little project with maven. I want to use JSF2 and Hibernate. Can you recommend some archetype? or some other procedures to st开发者_StackOverflow中文版art this project.
Cheers...
Use
mvn archetype:generate
A list with some archetypes will appear. You may find them useful/educative since many of them are for JSF projects:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
...
6: internal -> appfuse-modular-jsf (AppFuse archetype for creating a modular application with Hibernate, Spring and JSF)
...
20: internal -> softeu-archetype-seam (JSF+Facelets+Seam Archetype)
21: internal -> softeu-archetype-seam-simple (JSF+Facelets+Seam (no persistence) Archetype)
22: internal -> softeu-archetype-jsf (JSF+Facelets Archetype)
23: internal -> jpa-maven-archetype (JPA application)
...
39: internal -> myfaces-archetype-jsfcomponents (A simple archetype for create custom JSF components using MyFaces)
(I do not agree with Carl, keep it up with maven!)
You could try this one:
mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp
Seems like to want produce a war, isn't it ?
As a consequence, may i suggest you to use the war
packaging, which will allow you to run your web project in dev mode (also notice that, with m2eclipse and eclipse WTP, you may have added bonuses).
精彩评论