Posts Tagged ‘maven java dependency jta’

Maven and Java dependencies

March 6th, 2008 No comments

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

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

Luckily you can fix this. 🙂

Go to the Java site and grab the file.
Then manually import the file into your local maven repository by running the following command:

mvn install:install-file -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.


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

Categories: Java Tags: