我想和maven一起开展一个小项目。我想使用JSF2和Hibernate。你能推荐一些原型吗?或者其他一些程序来启动这个项目。
干杯...
答案 0 :(得分:5)
使用
mvn archetype:generate
将显示包含某些原型的列表。您可能会发现它们很有用/有教育意义,因为其中许多都适用于JSF项目:
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)
(我不同意卡尔的说法,请继续保持专家!)
答案 1 :(得分:1)
你可以尝试这个:
mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp
答案 2 :(得分:-1)