maven專案建立pom xml報無法解析org apache maven plugins maven resource
阿新 • • 發佈:2018-11-09
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
一、發現問題
建立maven專案後,pom.xml在顯示紅叉,滑鼠放上去,顯示Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3錯誤。
二、原因分析
缺少maven-resources-plugin-2.4.3.jar或該檔案下載不正確,可到repository\org\apache\maven\plugins\maven-resources-plugin\目錄看看下載是否正確。或刪除該檔案重新下載。
三、解決辦法
步驟一:
pom.xml檔案加入
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</dependency>
步驟二:run as —> maven install下載即可