Search code examples
eclipsemavenjsfmaven-3eclipse-kepler

Best startup JSF 2.2 archetype


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.


Solution

  • 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 :)