Maven missing JTA artifact

When you get in Maven:

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

the solution is to download “Class Files 1.0.1B” from http://java.sun.com/javaee/technologies/jta/index.jsp and then do:

mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip 
-DgroupId=javax.transaction -DartifactId=jta 
-Dversion=1.0.1B -Dpackaging=jar

Posted by wojtek Sat, 24 May 2008 14:57:00 GMT




Comments

Leave a response

  1. omaru 4 months later:

    I just wanted to say you that this how to really helped me so much. Keep the good job on!

  2. reidar 4 months later:

    Although your version works perfectly well, you can also add a repository to your pom.xml file:

    <repositories>
        <repository>
            <id>Agile Java</id>
            <url>http://agilejava.com/maven/&lt;/url&gt;
         </repository>
    </repositories>
    
  3. juan 5 months later:

    thanks. This was very helpful.

  4. Jlat 9 months later:

    Thanks this was helpful.

  5. fadoua 9 months later:

    merci beaucoup pour cette information, ça m’a aidé

  6. generex 11 months later:

    Thank you, and also thank you reidar :)

  7. nexter 12 months later:

    Thanks, i follow both solutions.

  8. Cleverson Sacramento over 1 year later:

    I tried to access the http://agilejava.com/maven/ repo, but I got an HTTP error.

    However, when I add the Java.net repo to my repo list, it works:

        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2/
            </url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    

Leave a comment