Archetype for the Maven Project

I would like to start a small project with maven. I want to use JSF2 and Hibernate. Can you recommend some archetype? or some other procedures for starting this project.

Greeting...

+7
java maven-2 maven-archetype
source share
3 answers

Using

mvn archetype:generate 

A list appears with some archetypes. You may find them useful / educational as 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 Karl, support him with maven!)

+5
source share

You can try the following:

 mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp 
+1
source share

He seems to want to make war, doesn't he? As a result, can I suggest you use the war package, which will allow you to run your web project in dev mode (also note that m2eclipse and eclipse WTP , you can add bonuses).

-one
source share

All Articles