maven pom.xml文件第一行報錯,用以下設置即可

報錯信息如下:

Failure to transfer org.codehaus.plexus:plexus:pom:1.0.11 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.codehaus.plexus:plexus:pom:1.0.11 from/to central (http://repo1.maven.org/maven2): No response received after 60000

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

2.Preferences > General > Capabilities > Advanced > MyEclipse Standard Tools > WTP (Deprecated).選中後OK退出,項目右鍵configure 重新加載maven模塊,便可出現

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章