Friday, 16 April 2010

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

I added the following to my pom.xml

<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>


displayed error message:

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

Thursday, 8 April 2010

Maven IBM SDK java null pointer exception

When trying to install Maven 2 with IBM SDK on win vista, everything looks ok until maven archetype:generate command is issued. Once the command is issued it download a few jars and throws exception.
I had to uninstall IBM sdk from classpath env variables and delete the folder then reinstall java sdk and pointed it to classpath. Everycommand works now.

This means IBM SDK AND MAVEN are not compatible? isin't?