Advertisements
The previous version of the included archetypes for creating projects using JSF, JPA, CDI and Bean Validation that can run in a servlet container such as Jetty or Tomcat. In order to put it through its paces I decided to create a little test social bookmarking application that lets users create accounts, and when logged in, add bookmarks and tag them. Users that are not logged in can view the bookmarks and filter them by user or tag, and the results are paginated.
The demo application is now included in the latest version of the Knappsack archetypes (1.0.5) which are in the central repository. The GAV information is :
1.
<
groupId
>org.fluttercode.knappsack</
groupId
>
2.
<
artifactId
>jee6-servlet-demo-archetype</
artifactId
>
3.
<
version
>1.0.5</
version
>
Or you can just create a new application from the command line with :
1.
mvn archetype:generate -DarchetypeGroupId=org.fluttercode.knappsack -DarchetypeArtifactId=jee6-servlet-demo-archetype
2.
-DinteractiveMode=
false
-DarchetypeVersion=1.0.5 -DgroupId=org.application -DartifactId=bookmarxrus -Dpackage=org.application
This lets you create a new instance of the demo application from the archetype so you can play with it (and break it!).