2010-07-13 16 views
7

मैवेन के साथ एक छोटी परियोजना शुरू करना चाहता हूं। मैं जेएसएफ 2 और हाइबरनेट का उपयोग करना चाहता हूं। क्या आप कुछ archetype की सिफारिश कर सकते हैं? या इस परियोजना को शुरू करने के लिए कुछ अन्य प्रक्रियाएं।मेवेन प्रोजेक्ट के लिए आर्केटाइप

चीयर्स ...

+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) 

(मैं, कार्ल से सहमत नहीं है इसे जारी रखें Maven के साथ!)

-1

एक युद्ध का उत्पादन करना चाहते हैं की तरह लगता है, यह नहीं है? परिणामस्वरूप, क्या मैं आपको war पैकेजिंग का उपयोग करने का सुझाव दे सकता हूं, जो आपको अपनी वेब प्रोजेक्ट को देव मोड में चलाने की अनुमति देगा (यह भी ध्यान दें कि m2eclipse और eclipse WTP के साथ, आपने बोनस जोड़ सकते हैं)।

1

आपको यह एक कोशिश कर सकते:

mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp 
संबंधित मुद्दे