m2eclipse报错:Plugin execution not covered by lifecycle configuration

   eclipse添加m2eclipse插件,导入maven项目时,报错:Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.7。


解决办法:

1,官方:http://wiki.eclipse.org/M2E_plugin_execution_not_covered


2,快速解决:pom.xml文件中的<plugins>标签的上部添加如下代码,即可解决:

<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 />
                 </action>
               </pluginExecution>
             </pluginExecutions>
           </lifecycleMappingMetadata>
         </configuration>
       </plugin>
     </plugins>
   </pluginManagement>


本文出自 “day day up” 博客,请务必保留此出处http://suexiukjung.blog.51cto.com/1169266/1393423

m2eclipse报错:Plugin execution not covered by lifecycle configuration,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。