eclipse maven 配置遇到的問題

1.忘記在eclipse中配置mavenapache

報錯:windows

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from eclipse

 

網上找到解決方案:maven

 

a、確認你電腦上MyEclipse有配置maven;ui

b、配置了maven,查看你maven的setting.xml,看看你的資源中央庫的路徑是否正確spa

檢查本身配置,發現eclipse中沒有配置maven命令行

配置方法:windows--->preference---->maven----->installations、user settingsxml

 

 

配置完以上以後,發現編譯工程報以下錯誤:ip

An internal error occurred during: "Updating Maven Project".
Unsupported IClasspathEntry kind=4ci

 

解決方法以下:

在工程上右鍵單擊--->maven----->disable maven nature----->到工程所在主目錄下命令行中執行 mvn eclipse:clean----->返回eclipse中工程上右鍵----->configure------>convert to maven project

 

問題解決!

相關文章
相關標籤/搜索