Add hibernate related dependencies to pom.xml
To be able to use Hibernate in your project you need reference to Hibernate jars. Once you have set up your Maven to access JBoss repository for Hibernate artifacts, you can add the dependencies below to your pom.xml:
We have added:
- Hibernate annotations.
- Hibernate commons annotations.
- Hibernate entity manager.
- Hibernate validator.
<!-- Hibernate -->
<dependency>
<groupid>org.hibernate</groupid>
<artifactid>hibernate-annotations</artifactid>
<version>3.5.7-SNAPSHOT</version>
</dependency>
<!-- NOTE: hibernate commons annotaions + Maven Hell: 3.3.0 version was wrong. -->
<dependency>
<groupid>org.hibernate</groupid>
<artifactid>hibernate-commons-annotations</artifactid>
<version>3.2.0.Final</version>
</dependency>
<dependency>
<groupid>org.hibernate</groupid>
<artifactid>hibernate-entitymanager</artifactid>
<version>3.6.0.CR2</version>
</dependency>
<!-- JSR 303 with Hibernate Validator -->
<dependency>
<groupid>javax.validation</groupid>
<artifactid>validation-api</artifactid>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupid>org.hibernate</groupid>
<artifactid>hibernate-validator</artifactid>
<version>4.0.2.GA</version>
</dependency>