2016-08-30 126 views
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> 
+0

你结了2.0.1而不是2.0?! – Jens

+0

仍然不起作用 –

+0

我刚刚检查了Maven存储库,插件是那里。所以我怀疑你有一个代理问题或什么的。其他依赖项是否成功下载?你是否支持代理服务器,你有互联网连接吗? –

回答

0

除去com.google.code.guice的依赖:吉斯:罐子:从我的项目2.0解决了这个问题。

我认为mvn依赖不是功能,因此无法下载它。