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

醉面韋陀發表於2010-01-11

錯誤程式碼如下:

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] Unable to 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] Unable to 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] Unable to 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及以前的版本就可以了

相關文章