关于maven更新超时问题的解决方法

闲言少叙,直奔主题吧。
最近两天编译项目代码时运行maven的install时,总是超时,然后出来一大堆错误,如下
Could not transfer artifact com.wcm:axiom-api:pom:1.2.13 from/to codehaus-repo (http://dist.codehaus.org/mule/dependencies/maven2): peer not authenticated

[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

后来也是一顿上网查,结果还是超时。
后来一个哥们给我说,把pom.xml里面的repositories标签下的配置文件都给注释了,结果果然好使。在这里分享一下,希望能帮到一些朋友吧。

猜你喜欢

转载自spf5566-126-com.iteye.com/blog/2213557