的代理我settting.xml服務器無法爲中央存儲庫
<mirror>
<id>Public Repositories</id>
<mirrorOf>central</mirrorOf>
<name>Public Repositories</name>
<url>http://10.97.19.51:8081/nexus/content/groups/public/</url>
</mirror>
然後,當我執行添加以下代碼:MVN全新的編譯,它失敗!
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building second 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ second ---
[INFO] Deleting E:\EclipseWorkspace\second\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ second ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\EclipseWorkspace\second\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ second ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.459 s
[INFO] Finished at: 2015-12-22T17:47:20+08:00
[INFO] Final Memory: 8M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project second: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to find com.google.collections:google-collections:jar:1.0 in http://11.97.19.55:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of Public Repositories has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
以下是我在Nexus中存儲庫的配置。
有人知道原因嗎?謝謝!!
將你的截圖添加到你的問題爲文本! – sschrass
還詳細說明了您嘗試使用您的連接代理的依賴關係或存儲庫,並將信息添加到您的問題中。 (在這種情況下,nexus repo-config可能是一個截圖)。 – sschrass