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>
,請告訴我,如果他們中的一個是不好的,應該被刪除,如果我要補充另一個回購協議找到缺失的依賴關係,謝謝。
謝謝我會試試,關於使用前兩個太陽依賴關係的任何想法?我無法在pom文件中找到它們,我認爲它們是作爲另一個依賴項的一部分下載的。 –
很可能。你可以從oracle下載它們,然後你需要把它們安裝在你的本地倉庫裏 - 這裏的說明http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html – CPJ
或者你也可以排除他們(因爲有機會你沒有使用它們)看到這個問題http://stackoverflow.com/questions/2310633/maven-dependency-log4j-error – CPJ