創建項目報錯,如圖:
原因就是maven的配置文件不是最新的,MyEclipse2014解決方法:
1.help ->Install New sitie...
2.點擊add
3.填寫name和location (最好能從本地安裝,因網絡問題,可能更新不了,長時間等待,出現cannot perform operation.Computing alternate solutions,may take a while: ...)
- Name: MavenArchiver
- Location: http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/
4點擊“Available Software Sites”
5.去掉其他要安裝的插件,防止報cannot perform operation.Computing alternate solutions...
6.選中“m2e extensions”;取消選項“Contact all update sites during install to find required software”
7.一直next confirm 安裝更新 提示重啟eclipse 然后再右鍵項目maven update project