我想从Maven开始一个小项目。我想使用JSF2和Hibernate。你能推荐一些原型(prototype)吗?或其他一些程序来启动该项目。
干杯...
最佳答案
采用
mvn archetype:generate
将会出现带有一些原型(prototype)的列表。您可能会发现它们有用/有教育意义,因为它们中的许多都是针对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)
(我不同意卡尔,请保持与Maven保持一致!)