0
找不到com.google.code.guice:guice:jar:2.0。未能在http://repo1.maven.org/maven2中找到com.google.code.guice:guice:jar:2.0
我添加這個作爲依賴在POM中仍然沒有得到下載。
INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JIRAService 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.google.code.guice:guice:jar:2.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.240s
[INFO] Finished at: Tue Aug 30 22:23:24 IST 2016
[INFO] Final Memory: 12M/325M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project JIRAService: Could not resolve dependencies for project com.group:my:jar:0.0.1-SNAPSHOT: Failure to find com.google.code.guice:guice:jar:2.0 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 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.
[1]: http://i.stack.imgur.com/BCeRT.png
的依賴性增加
<!-- https://mvnrepository.com/artifact/com.google.code.guice-repository/guice-repository -->
<dependency>
<groupId>com.google.code.guice-repository</groupId>
<artifactId>guice-repository</artifactId>
<version>2.0.1</version>
</dependency>
你結了2.0.1而不是2.0?! – Jens
仍然不起作用 –
我剛剛檢查了Maven存儲庫,插件是那裏。所以我懷疑你有一個代理問題或什麼的。其他依賴項是否成功下載?你是否支持代理服務器,你有互聯網連接嗎? –