错误描述:
(1)Failure to transfer org.apache.maven:maven-parent:pom:19 from http:// repo.m
(2)Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was 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.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem
解决办法:
(1)For Linux
find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \; (2)For Windows
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
Then rightclick on your project in eclipse and choose Maven->Update Project
本文介绍了解决Maven依赖下载失败的方法,包括清理本地仓库缓存中的问题文件,并提供了针对Linux和Windows系统的具体操作步骤。
6万+

被折叠的 条评论
为什么被折叠?



