Maven and Hibernate hell.

I am a Maven newbie and wanted to setup an example Maven + Spring + Hibernate + Mockito project. I have been fairly successful at that but not without my struggles with Maven. Here is my hibernate dependency structure in pom.xml. Some experienced maven and hibernate users probably would spot the mistake…

Maven: Add Mockito Dependency.

Adding Mockito dependency to your project is pretty simple. Simply add the dependencies below to your pom.xml. NOTE: You will need JUnit version 4.4 or earlier. I couldn't get Mockito to work with higher JUnit versions. Also, I did not try any prior version than Junit 4.4.…

Maven, Grails, GWT and Spring MVC.

Maven has this concept of archetypes, which are in simple terms pre-configured or pre-setup projects for different technologies like GWT, Grails, Scala, Wicket etc. So what you are getting is Maven's goodness sprinkled on top of these pre configured project (which prefer a certain structure to things) so you can…