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文件中的标签的上部添加如下代码,即可解决:


     
       
       
         org.eclipse.m2e
         lifecycle-mapping
         1.0.0
         
           
             
               
                 
                   org.apache.maven.plugins
                   maven-antrun-plugin
                   [1.7,)
                   
                     run