I am new to Java world but I am pretty good at using Flex, actionscript 3, Ant and even Maven to some extent. Now I would like to learn some java and use Hibernate and JBoss (webapp).
I already have Maven working and have found the m2eclipse plugin on the web, it seem pretty nice for maven integration.
Now I would like to know how to set the project using “best practices” if possible and start the ball rolling. My question is not about using Java or Hibernate, it is just about project settings / configuration using m2eclipse or maybe another tool if necessary.
Thank you in advance for your help.
Actually, archetypes are not m2eclipse specific, they are maven species. But this was just a side note. Now, to answer your question, there is “sadly” no unique option and I hope I won’t make things more confusing at listing them:
maven-archetype-webapparchetype to create a blank webapp and setup the Hibernate stuff yourself (follow the Hibernate tutorial which is maven based).struts2-archetype-starteror thewicket-archetype-quickstartor a MyFaces archetype) and setup the Hibernate stuff yourself.javaee5-maven-archetypearchetype to create a Java EE 5 (JSF 1.2 + EJB 3) application.softeu-archetype-seamarchetype to create a JBoss Seam application (JSF+Facelets+Seam).If you want some guidance, my recommendation would be to go for an AppFuse archetype.
Choose a presentation framework and pick up the corresponding archetype. If you want a more “naked” solution, generate a blank webapp and setup hibernate yourself (follow the mentioned tutorial).