2011-09-06 71 views
1

我使用maven 2,我無法找到以下依賴性:Coludn't找到以下依賴項:com.sun.jmx:jmxri:jar:1.2.1和com.sun.jdmk:jmxtools:jar:1.2.1

com.sun.jmx:jmxri:jar:1.2.1 
com.sun.jdmk:jmxtools:jar:1.2.1 
commons-logging: commons-logging:jar:1.1.0.jboss 
hibernate-commons-annotations:hibernate-commons-annotations:jar:3.0.0.GA 
hsqldb:hsqldb:jar:1.8.0.2 

我用下面我POM文件回購:

<repository> 
      <id>jboss</id> 
      <name>jboss</name> 
      <url>https://repository.jboss.org/nexus</url> 
      <layout>default</layout> 
     </repository> 

     <repository> 
      <id>javanet</id> 
      <name>Repository for Maven2</name> 
      <url>http://download.java.net/maven/2</url> 
     </repository> 

     <repository> 
      <id>google</id> 
      <name>Google repository for Maven2</name> 
      <url>https://oss.sonatype.org/content/repositories/google-releases/</url> 
     </repository> 

     <repository> 
      <id>com.springsource.repository.bundles.release</id> 
      <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name> 
      <url>http://repository.springsource.com/maven/bundles/release</url> 
     </repository> 

     <repository> 
      <id>com.springsource.repository.bundles.external</id> 
      <name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name> 
      <url>http://repository.springsource.com/maven/bundles/external</url> 
     </repository> 

     <repository> 
      <id>com.springsource.repository.libraries.release</id> 
      <name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name> 
      <url>http://repository.springsource.com/maven/libraries/release</url> 
     </repository> 

     <repository> 
      <id>com.springsource.repository.libraries.external</id> 
      <name>SpringSource Enterprise Bundle Repository - External Library Releases</name> 
      <url>http://repository.springsource.com/maven/libraries/external</url> 
     </repository> 

,請告訴我,如果他們中的一個是不好的,應該被刪除,如果我要補充另一個回購協議找到缺失的依賴關係,謝謝。

回答

3

對於太陽罐子我相信你已經下載它們(從Oracle)和在本地資源庫安裝它們(許可問題意味着別人不能重新分配他們一個maven回購)

至於其他,你應該找到他們在JBoss回購

https://repository.jboss.org/

編輯:該版本共享記錄的似乎是一個稍微不同的位置:

https://repository.jboss.org/nexus/content/repositories/public/

所以你必須添加那一個

+0

謝謝我會試試,關於使用前兩個太陽依賴關係的任何想法?我無法在pom文件中找到它們,我認爲它們是作爲另一個依賴項的一部分下載的。 –

+0

很可能。你可以從oracle下載它們,然後你需要把它們安裝在你的本地倉庫裏 - 這裏的說明http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html – CPJ

+0

或者你也可以排除他們(因爲有機會你沒有使用它們)看到這個問題http://stackoverflow.com/questions/2310633/maven-dependency-log4j-error – CPJ