8

What is the best maven archetype to start a JSF 2.2 project in Eclipse EE with?

I am currently learning JSF and am looking for a clean maven archetype to start my JSF project with. I tried a few archetypes with jsf in the title, but they don't seem to create a "clean" (no problems found) in eclipse. I am looking for an answer from experience.

Martijn Burger
  • 7,315
  • 8
  • 54
  • 94

2 Answers2

2

I think there is no best one as every archetype comes with stuff one does not want. Since every one is different some modifications will always be required.

I would give the appfuse archetypes a try: http://appfuse.org/display/APF/AppFuse+QuickStart

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-light-jsf-archetype -DarchetypeVersion=2.2.1 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse

I think they use MyFaces 2.1.9 but that should be easy to change :)

wemu
  • 7,952
  • 4
  • 30
  • 59
1

You could try this one: https://github.com/ignl/happyfacescrud It contains quite a few features out of box.