The Answer to Life, the Universe, and Everything

Tuesday, June 12, 2007

Maven2 with Hibernate

Maven cannot solve the dependency regarding jta as it is released by Sun and based upon their binary license it cannot be deployed on the maven repository.

You will see something like this below.
1) javax.transaction:jta:jar:1.0.1B
Try downloading the file manually from:
Then, install it using the command:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) RssUpdater:RssUpdater:package:0.0.1
3) javax.transaction:jta:jar:1.0.1B
1 required artifact is missing.
for artifact:
from the specified remote repositories: (, (,
central (

In order to avoid this, download jta and deploy it onto your local maven repos.

mvn install:install-file \
-Dfile=./ \
-DgroupId=javax.transaction \
-DartifactId=jta -Dversion=1.0.1B \

No comments: