I added the following to my pom.xml
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.4.0.GA</version> </dependency>
I was presented with the following error message from maven
Missing indirectly referenced artifact javax.transaction:jta:jar:1.0.1B:compile
This is due to licensing reason, jta cannot be downloaded from the central repositories.
You will need to download/install the jar into your own repository manually.
Check out the Java.net maven 2 repo.
Download the .jar, .jar.md5, and .jar.sha1 into you [.m2/javax/transaction/jta/1.0.1B/] using the following:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=jta-1.0.1B.jar