Maven Configuration problem解决方法

maven构建项目时报错:
Failure to transfer org.apache:apache:pom:8 from 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. Original error: Could not transfer artifact org.apache:apache:pom:8 from/to central (http://repo1.maven.org/maven2): No response received after 60000 pom.xml /sshe line 1 Maven Configuration Problem

解决方法:删除所有下载失败的文件
Windows 命令:
cd %userprofile%.m2\repository
for /r %i in (*.lastUpdated) do del %i

Linux 命令:
~/.m2 -name “*.lastUpdated” -exec grep -q “Could not transfer” {} ; -print -exec rm {} ;
最后refresh工程,报错解决。


作者:yuan_hai_long
来源:CSDN
原文:https://blog.csdn.net/yuan_hai_long/article/details/52142187
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/cgz_codedog/article/details/87874704
今日推荐