Missing com.sun.jdmk:jmxtools:jar:1.2.1

错误代码如下:

1/10/08 4:42:40 PM CST: Launching M2
1/10/08 4:47:20 PM CST: Launching M2
1/10/08 4:51:46 PM CST: Reading /myweb/pom.xml
1/10/08 4:51:47 PM CST: [WARN] Unable to get resource from repository artifactory (http://localhost:8081/artifactory/repo)
1/10/08 4:51:49 PM CST: [WARN] Unableto get resource from repository java.net(https://maven-repository.dev.java.net/nonav/repository)
1/10/08 4:51:49 PM CST: [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2)
1/10/08 4:51:50 PM CST: [WARN] Unable to get resource from repository artifactory (http://localhost:8081/artifactory/repo)
1/10/08 4:51:52 PM CST: [WARN] Unableto get resource from repository java.net(https://maven-repository.dev.java.net/nonav/repository)
1/10/08 4:51:52 PM CST: [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2)
1/10/08 4:51:53 PM CST: [WARN] Unable to get resource from repository artifactory (http://localhost:8081/artifactory/repo)
1/10/08 4:51:56 PM CST: [WARN] Unableto get resource from repository java.net(https://maven-repository.dev.java.net/nonav/repository)
1/10/08 4:51:56 PM CST: [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2)
1/10/08 4:51:56 PM CST: Missing:
----------
1) com.sun.jdmk:jmxtools:jar:1.2.1

  Try downloading the file manually from:
      http://java.sun.com/products/JavaManagement/download.html

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools \
          -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
  1) cn.gamewave:myweb:war:1.0-SNAPSHOT
  2) log4j:log4j:jar:1.2.15
  3) com.sun.jdmk:jmxtools:jar:1.2.1

2) com.sun.jmx:jmxri:jar:1.2.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri \
          -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
  1) cn.gamewave:myweb:war:1.0-SNAPSHOT
  2) log4j:log4j:jar:1.2.15
  3) com.sun.jmx:jmxri:jar:1.2.1

3) javax.jms:jms:jar:1.1

  Try downloading the file manually from:
      http://java.sun.com/products/jms/docs.html

  Then, install it using the command:
      mvn install:install-file -DgroupId=javax.jms -DartifactId=jms \
          -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
  1) cn.gamewave:myweb:war:1.0-SNAPSHOT
  2) log4j:log4j:jar:1.2.15
  3) javax.jms:jms:jar:1.1

----------
3 required artifacts are missing.

 

解决办法:

  1. <dependency>        
  2.     <groupId>log4j</groupId>        
  3.     <artifactId>log4j</artifactId>        
  4.     <version>1.2.15</version>        
  5.     <scope>compile</scope>  
  6. </dependency> 

换成 1.2.14及以前的版本就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值