Maven failed to resolve dependencies - javax.activation

I have a working maven web application that uses a lot of cans. Trying to add javax.activation and run mvn clean install.

I get "Failed to complete the goal in the xxx project: failed to resolve dependencies for the javax.activation project: activation: jar: 1.0.2 in the center (http://build02.efollett.com:8081/artifactory/libs release)

When I check my maven repository, I see an activation jar there. For example, going to C: \ Users \ me.m2 \ repository \ javax \ activation \ activation \ 1.0.2 I see the following.

activation-1.0.2.jar.lastUpdated activation-1.0.2.pom activation-1.0.2.pom.sha1 activation-1.0.2.pom.tmp.sha1.tmp 

My colleague uses the same settings.xml parameters, and I compared my local pom.xml with the version in cvs. They are all the same! Any thoughts on what I am missing?

Thank you for your help.

+6
source share
2 answers

The artifact you need is javax.activation:activation:jar:1.0.2 (pay attention to the jar part), and the artifact that you have in your repo is javax.activation:activation:pom:1.0.2 . Either put jar alone in your repo or add <classifier>pom</classifier> to your <dependency> .

+4
source

Sun will not allow Maven to redistribute its binaries, including JavaMail JAR and activation JAR. Instead, all users must manually install the Sun binaries by downloading them from the Sun website and running the mvn installation command.

1. Download the Java Activation Framework

http://www.oracle.com/technetwork/java/javase/jaf-136260.html

and then

http://download.oracle.com/otn-pub/java/jaf/1.0.2-fcs/jaf-1_0_2-upd2.zip

2. Excerpt "jaf-1.0.2"

3. Run in the folder "jaf-1.0.2"

mvn install:install-file -Dfile=activation.jar -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar

+9
source

All Articles