[英]Archetype for Maven Project
我想和maven一起開展一個小項目。 我想使用JSF2和Hibernate。 你能推薦一些原型嗎? 或者其他一些程序來啟動這個項目。
干杯...
采用
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)
(我不同意卡爾,跟maven保持聯系!)
你可以嘗試這個:
mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp
似乎想要生產一場戰爭,不是嗎? 因此,我可以建議您使用war
包裝,這將允許您以開發模式運行您的Web項目(還要注意,使用m2eclipse和eclipse WTP ,您可能已經添加了獎勵)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.