Maven 错误“Failure to transfer…” 博客分类: maven maven Failure to transfer maven错误
还是今天,导入一个maven项目的时候遇到“Failure to transfer…”错误。
完整的错误大致如下:
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/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.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
原因:谁能翻译一下上面这段话,我懂,但是写出来好累。算了,自己去查吧。现在好饿。。
解决方法:
cmd进入你的maven库。
如何找你配置的maven库?
Eclipse-----》Windows----------》Peference ------------》Maven------------》User setting
一系列cd cd 之后就进入了库咯。(我知道这样很笨。。。)
然后运行命令:
for /r %i in (*.lastUpdated) do del %i
回车。
这个就是清除你下载失败的文件的命令。然后再回去刷新一下你的maven项目,就okay咯!!
其实我这个是我再stack overflow上面找到的。看来这个问题很常见。
地址:http://*.com/questions/5074063/maven-error-failure-to-transfer
推荐阅读
-
Maven 错误“Failure to transfer…” 博客分类: maven maven Failure to transfer maven错误
-
Maven解决Missing artifact com.sun:tools:jar:1.5.0错误 博客分类: mavenstruts2 mavenstruts2
-
Maven 错误“Failure to transfer…” 博客分类: maven maven Failure to transfer maven错误
-
Maven解决Missing artifact com.sun:tools:jar:1.5.0错误 博客分类: mavenstruts2 mavenstruts2
-
Failure to transfer org.apache.maven.surefire:surefire:pom:2.10 解决办法
-
maven编译时Failure executing javac, but could not parse the error:的错误
-
maven错误:unknow文件夹--报错:Failure to find xxx:pom:unknown
-
maven错误:unknow文件夹--报错:Failure to find xxx:pom:unknown