Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Archetype for Maven Project

I'd like to start a little project with maven. I want to use JSF2 and Hibernate. Can you recommend some archetype? or some other procedures to start this project.

Cheers...

like image 345
Sven Avatar asked Jul 13 '10 13:07

Sven


2 Answers

Use

mvn archetype:generate

A list with some archetypes will appear. You may find them useful/educative since 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 Carl, keep it up with maven!)

like image 151
YuppieNetworking Avatar answered Oct 03 '22 01:10

YuppieNetworking


You could try this one:

mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp 
like image 45
Koks Skirtumas Avatar answered Oct 03 '22 03:10

Koks Skirtumas