Maven 工程錯誤Failure to transfer org.codehaus.plexus:plexus-io:pom:1.0,Failure to transfer org.codehaus

新換了一臺電腦,把老電腦上的開發環境部署到新的電腦上,本來好好的Maven工程卻出現了莫名的錯誤apache

Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http://repo.maven.apache.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.codehaus.plexus:plexus-archiver:jar:2.0.1 from/to central (http://repo.maven.apache.org/maven2): 
 No response received after 60000
 Failure to transfer org.codehaus.plexus:plexus-io:pom:1.0 from http://repo.maven.apache.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.codehaus.plexus:plexus-io:pom:1.0 from/to central (http://repo.maven.apache.org/maven2): No 
 response received after 60000

上面的兩個錯誤描述解決步驟是同樣的,就不羅嗦重複介紹了。網絡

以第二種錯誤提示爲例:maven

1.先去掉Maven工程的maven特性,選中工程 鼠標右鍵-->Maven-->Disable Maven Nature. 此步驟後pom.xml錯誤消失spa

2.爲工程增長Maven特性,選中工程 鼠標右鍵-->Configure-->Convert to Maven Project.code

通過上述步驟,Maven工程就正常了。xml

PS:網絡很差的狀況下,用Maven真是不爽,最好創建本地私服。blog

相關文章
相關標籤/搜索