Search This Blog

Loading...

Missing indirectly referenced artifact javax.transaction:jta:jar:1.0.1B:compile

Today I was trying to start playing with Hibernate Annotation.

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.
http://download.java.net/maven/2/javax/transaction/jta/1.0.1B/
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

4 Comments:

Sebastien said...

What is the interest of that file for you ? XSD+JAXB -> manipulation in java of changes.xml data ? others ideas?

rmesli said...

Hi! Dawoud,
Yes! I am using m2eclipse because I find these long commands inconvenient. I moved the file manually to the location referred to by my Project Build Path Window. in my case: ~\.m2\repository\javax\transaction\jta\1.0.1B.

Thank you

Rachid Mesli

suresh gupta said...

thanks , i solved my problem

Захари Палазов said...

Zahari Palazov, thanks a lot man I also moved the files manually.
Best Regards !