This maven2 archetype contains a little sample web application with this Frameworks:
- Spring 3.0.0.RELEASE Framework
- Servlet-API 2.5
- JSF 2.0 (mojarra 2.0.2)
- RichFaces 4.0.0.ALPHA1
- ploinFaces 1.6
- ploinMailFactory 1.3.1
- Hibernate 3.3.0
- TestNG 5.8
- Log4J 1.2.15
- HSQLDB 1.8.0.7
The configuration is annotation-driven. It is deployed on the PLOIN Repository-Serve
http://www.ploin-m2.de/nexus/content/groups/public/
you can create a project from the archetype with the following command:
mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringRichHibernate -DarchetypeVersion=1.7 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -DgroupId=org.ploin -DartifactId=demoSpringRichHibernate
The created project is a very simple web-application with a login mask and 2 xhtml-sites. I have tested the app on a tomcat 6.0.20 and Java 1.6 on Mac OS X Snow Leopard.
You can login with the username “admin” and the password “admin”.
After the creation the app is running with the HypersoniceSQL DBMS. But it is very easy to switch to MySQL or Oracle. I put the drivers for MySQL and Oracle as a comment in the pom.xml. So you just need to comment in the right lines in the pom.xml.