找不到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>
答案 0 :(得分:0)
删除了com.google.code.guice的依赖项:guice:jar:2.0解决了这个问题。
我认为mvn依赖不起作用,因此无法下载。