This is a Maven Archetype to setup a simple web application with JSF2 and CDI. The tomcat 7 plugin is also available.
- Apache MyFaces 2 API
- Apache MyFaces 2 Impl
- Weld Servlet
- Junit
- Mockito
- Fest-Assert 2
-
Checkout the project
-
mvn install
to get the archetype in your local maven repository -
Type in your console (in a single line):
mvn archetype:generate -DarchetypeGroupId=eu.lestard -DarchetypeArtifactId=jsf-cdi-archetype -DarchetypeVersion=0.0.1 -DgroupId=your.group.id -DartifactId=your.artifact.id
-
To start the tomcat server:
- Switch in the generated project directory
- build the application with
mvn install
- start the tomcat server with
mvn tomcat7:run
- The url is
http://localhost:8080/your.artifact.id