天天看點

關于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标簽下的配置檔案都給注釋了,結果果然好使。在這裡分享一下,希望能幫到一些朋友吧。