This maven2 archetype contains a little sample web application with this Frameworks:
- Spring 3.0.4.RELEASE Framework
- Servlet-API 2.5
- JSF 2.0 (mojarra 2.0.2)
- ploinFaces 1.6
- ploinMailFactory 1.3.1
- Hibernate 3.3.0
- TestNG 5.8
- Log4J 1.2.15
- HSQLDB 220.127.116.11
The configuration is annotation-driven. It is deployed on the PLOIN Repository-Server
you can create a project from the archetype with the following command:
mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempJsf2Spring3Hibernate3 -DarchetypeVersion=1.0 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -DgroupId=org.ploin -DartifactId=demoJsfSpringHibernate
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.
4 thoughts on “Archetype: JSF 2.0 + Spring 3.0.4.RELEASE + Hibernate 3.3.0”
If you like this archetype, try also this one here:
That is a JSF 2.0 Archetype with RichFaces 4.1, Spring and Hibernate.
The RichFaces Archetype includes also Ajax4JSF!
nice work … appreciated it