MyEclipse导入Maven项目报错 Plugin execution not covered by lifecycle configuration:

web项目使用到mybatis,需要使用mybatis的自动生成代码插件,配置build部分如下:  

 1  <build>
 2       <pluginManagement></pluginManagement>
 3     <plugins>
 4       <plugin>
 5         <artifactId>maven-war-plugin</artifactId>
 6       </plugin>
 7       <plugin>
 8         <artifactId>maven-compiler-plugin</artifactId>
 9         <configuration>
10           <source>1.6</source>
11           <target>1.6</target>
12         </configuration>
13       </plugin>
14       <plugin>
15         <groupId>org.mybatis.generator</groupId>
16         <artifactId>mybatis-generator-maven-plugin</artifactId>
17         <version>1.3.2</version>
18         <executions>
19           <execution>
20             <id>mapper-generate</id>
21             <phase>generate-resources</phase>
22             <goals>
23               <goal>generate</goal>
24             </goals>
25           </execution>
26         </executions>
27         <dependencies>
28           <dependency>
29             <groupId>org.mybatis.generator</groupId>
30             <artifactId>mybatis-generator-core</artifactId>
31             <version>1.3.2</version>
32           </dependency>
33         </dependencies>
34         <configuration>
35           <verbose>true</verbose>
36           <overwrite>true</overwrite>
37           <configurationFile>src\main\resources\generatorConfig.xml</configurationFile>
38         </configuration>
39       </plugin>
40     </plugins>
41   </build>

execution标签处报错详细如下:

  

  

  报错内容:

Plugin execution not covered by lifecycle configuration: org.mybatis.generator:mybatis-generator-maven-
plugin:1.3.2:generate (execution: mapper-generate, phase: generate-resources)

解决方法:

   <plugins> 标签外再套一个 <pluginManagement> 标签 解决

时间: 2024-10-05 23:26:59

MyEclipse导入Maven项目报错 Plugin execution not covered by lifecycle configuration:的相关文章

备忘:maven 错误信息: Plugin execution not covered by lifecycle configuration

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  <modelVers

maven 报类似 “Plugin execution not covered by lifecycle configuration: org.antlr:antlr3-maven-plugin:3.4:antlr (execution: default, phase: generate-sources)” 错误 的解决方案

直接在plugins 外层加上 pluginManagement 即可. In my case of a similar problem, instead of using Andrew's suggestion for the fix, it worked simply after I introduced <pluginManagement> tag to the pom.xml in question. It looks like that error is due to a missi

Plugin execution not covered by lifecycle configuration: aspectj-maven-plugin:1.8

现象: eclipse导入existing maven project,(父项目包含很多子项目),子项目的pom.xml报错: Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.8:compile (execution: default,phase:compile) 解决方法一: enclose all the plugin tags inside a

Maven在导入其他项目时报错:Plugin execution not covered by lifecycle configuration

这几天想把Spring 攻略第二版完整的学习下,所以就在网上下载了该教材的源码,寻思边看书边练习!之前有过一些Maven开发的相关经验,觉得Maven在引入jar包上的配置还是很方便的,所以这次源码的Maven配置我倒是不担心,没想到项目导入后就报了一堆错误,一个一个的去解决,很多问题网上都有解决办法,就剩下一个问题折腾好久才解决掉,现将问题的解决过程记录如下: 1 问题描述 Plugin execution not covered by lifecycle configuration: org

groovy入门()Groovy插件安装:Maven报Plugin execution not covered by lifecycle configuration

参考链接:http://www.cnblogs.com/rightmin/p/4945797.html 1.引入groovy的jar包 2.引入groovy编译插件 3.遇到问题 Plugin execution not covered by lifecycle configuration 4.解决办法 quickfix+删除重导入工程大法!! 下面是网上介绍的解决方法,下次遇到再试试: 5.附录代码 - eclipse开发Groovy代码,与java集成,maven打包编译 5.1.设置类路径

解决Maven报Plugin execution not covered by lifecycle configuration

环境 eclipse 4.3.0 maven 3.0.4 m2e 1.4.0 出现场景 以前的老项目,在我的环境(我的环境较新)下,别人老环境不报错. 错误示例 一个错误示例,子项目引用了父项目,子项目parent标签处报错如下: Multiple annotations found at this line: - maven-enforcer-plugin (goal "enforce") is ignored by m2e. - Plugin execution not cover

pom.xml报Plugin execution not covered by lifecycle configuration错误

环境 eclipse 4.3.0 maven 3.0.4 m2e 1.4.0 出现场景 以前的老项目,在我的环境(我的环境较新)下,别人老环境不报错. 错误示例 一个错误示例,子项目引用了父项目,子项目parent标签处报错如下: Multiple annotations found at this line: - maven-enforcer-plugin (goal "enforce") is ignored by m2e. - Plugin execution not cover

MAVEN “Plugin execution not covered by lifecycle configuration”

pom文件中报错提示: Plugin execution not covered by lifecycle configuration: net.alchim31.maven:yuicompressor-maven-plugin:1.5.1:compress (execution: default, phase: process- resources) 上网一搜,很多人说在<plugins>标签外面加<pluginManagement>标签就可以了,加了pluginManageme

在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案

eclipse在其POM文件的一处提示出错如下: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) 这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩展机制的,我们可以通过如下操