Maven failed to resolve dependencies - javax.activation

后端 未结 3 1669
悲哀的现实
悲哀的现实 2021-01-18 01:38

I have a working maven web application which uses many jars. Trying to add javax.activation and do a mvn clean install fails.

I get \"Failed to execute goal on proje

3条回答
  •  余生分开走
    2021-01-18 02:23

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

    1. Download 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. Extract "jaf-1.0.2"

    3. Run at folder "jaf-1.0.2"

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

提交回复
热议问题