How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds

来源:互联网 发布:淘宝上卖高仿鞋的店 编辑:程序博客网 时间:2024/06/05 17:26

eclipse中,maven的pom.xml文件使用execution后一直提示有错误,解决方法:

use quick-fix on the error in pom.xml and select Permanently mark goal run in pom.xml as ignored in Eclipse build - this will generate the required boilerplate code for you.

修改后,会在pom.xml文件中加上如下内容:

<pluginManagement>      <plugins>      <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->      <plugin>      <groupId>org.eclipse.m2e</groupId>      <artifactId>lifecycle-mapping</artifactId>      <version>1.0.0</version>      <configuration>      <lifecycleMappingMetadata>      <pluginExecutions>      <pluginExecution>      <pluginExecutionFilter>      <groupId>      org.apache.maven.plugins      </groupId>      <artifactId>      maven-antrun-plugin      </artifactId>      <versionRange>      [1.7,)      </versionRange>      <goals>      <goal>run</goal>      </goals>      </pluginExecutionFilter>      <action>      <ignore></ignore>      </action>      </pluginExecution>      </pluginExecutions>      </lifecycleMappingMetadata>      </configuration>      </plugin>      </plugins>      </pluginManagement>


0 0
原创粉丝点击