1. 程式人生 > >maven pom.xml檔案第一行報錯,用以下設定即可

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工程就正常了。