Chapter 5. Use the Archetypes
A number of Maven archetypes are provided as part of the JBoss Web Framework release. The purpose of these archetypes is to provide project patterns that you can customize and use as the starting point for developing your own applications. The archetypes use dependencies from JBoss Web Framework Kit and the generated applications are designed to run with the platforms certified for this release of JBoss Web Framework Kit.
This section details the archetypes available and provides instructions for generating, building and deploying the resulting archetype applications. Instructions are also provided for achieving these tasks using JBoss Developer Studio.
5.1. Available Archetypes
All of the archetypes associated with this release of JBoss Web Framework Kit are hosted in the Maven Central repository at http://central.sonatype.org/. The available archetypes and generated applications are detailed here.
Table 5.1. Archetypes in org.jboss.archetype.wfk group
| Artifact Id | Generated Application |
|---|---|
| jboss-html5-mobile-archetype | This archetype generates a Java EE 6 application that utilizes HTML5 and JAX-RS to support both desktop and mobile web browsers. |
| jboss-html5-mobile-blank-archetype | This archetype generates a blank Java EE 6 application that utilizes HTML5 and JAX-RS to support both desktop and mobile web browsers. This archetype provides only the required dependencies to get started. |
| jboss-spring-mvc-archetype | This archetype generates a starter Spring MVC application with Java EE persistence settings including server bootstrapped JPA and JTA transaction management. |
| richfaces-archetype-kitchensink | This archetype generates a kitchensink application that features annotation-driven CDI and Java Bean Validation on both the client side and the server side, plus JPA and JAX-RS on the server side only. |
| richfaces-archetype-simpleapp | This archetype generates a simple RichFaces application. |