Feed on Posts or Comments 10 March 2010

Java Wytze on 06 Mar 2008 10:40 am

Maven and Java dependencies

When building some Java projects with maven you might run into some missing Sun jars/artifacts.

[INFO] Failed to resolve artifact.
 
Missing:----------
 
1) javax.transaction:jta:jar:1.0.1B

Luckily you can fix this. :)

Go to the Java site and grab the jta-1_0_1B-classes.zip file.
Then manually import the file into your local maven repository by running the following command:

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

Now you have it. If you wish you can add this dependency to your pom.xml manually now also.

<dependency>
    <groupid>javax.transaction</groupid>
    <artifactid>jta</artifactid>
    <version>1.0.1B</version>
</dependency>

For more information look at maven’s mini-howto.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply