首页 新闻 赞助 找找看

创建maven项目的时候报如下错误,怎么解决?

0
[待解决问题]

Failure to transfer org.apache:apache:pom:4 from http://repo.maven.apache.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. Original error: Could not transfer artifact org.apache:apache:pom:4 from/to central (http://
repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/apache/
apache/4/apache-4.pom

lailailaisunday的主页 lailailaisunday | 菜鸟二级 | 园豆:202
提问于:2016-11-17 15:09
< >
分享
所有回答(1)
0

was cached in the local repository!!

你是不是在maven下载jar下载一半的时候停止它了??

(1)把你本地的maven仓库中的.lock文件夹下的东西都清空

 

 

(2)然后把下载失败的jar所在的版本文件夹删除

92年程序员 | 园豆:223 (菜鸟二级) | 2016-11-19 23:35
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册