Share

November 25, 2008

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

6 comments:

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

    ReplyDelete
  2. 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

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

    ReplyDelete
  4. If I want to add this dependency in pom.xml then how would I do it as I am facing some problems while adding this dependency in pom.xml. As I wrote the following..


    javax.transaction
    jta
    1.0.1B

    ReplyDelete
  5. If I want to add this dependency in pom.xml then how would I do it as I am facing some problems while adding this dependency in pom.xml. As I wrote the following..


    javax.transaction
    jta
    1.0.1B

    ReplyDelete