天天看點

MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration

用myeclipse 2014 整maven 項目時,pom.xml檔案中報以下兩個異常:

Multiple annotations found at this line:

- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-

plugin:2.5:testResources (execution: default-testResources, phase: process-test-resources)

- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-

plugin:2.5:resources (execution: default-resources, phase: process-resources)

解決方案1:

把maven的版本從3.3.1改成3.1.1

MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration

解決方案2:

點選圖中的紅色字型會出現面内容

MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration
MyEclipse2014建立Maven項目pom.xml檔案報Plugin execution not covered by lifecycle configuration