Hibernate dependencies and Maven pom.xml setup
Ok so i am tired of having to hunt around for a ready made snippet of Maven pom.xml stanza's for a complete and compatable set of jars for hiberbate. Most of the time you end up having to roll your own anyway. So below is my current version of the necessary stanzas. The version numbers will need to be changed with changes in hibernate releases but that is quiet easy to sort out by refering to the compatability matrix on the hibernate download page.
First add the following repository to your pom.xml
<repository>
<id>JBoss</id>
<name>JBoss Repsitory</name>
<layout>default</layout>
<url>http://repository.jboss.org/maven2</url>
</repository>
Next add the following dependencies (the latest log4j is needed if you are using log4j):
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.2.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
</dependency>
Well at least I have it all recorded now. NExt time it will be a synch.
muti
digg
del.icio.us
google
reddit
facebook
furl
Thanks
I can finally go to bed