异常处理:Eclipse下解决Plugin execution not covered by lifecycle configuration异常 .
2013-09-12 16:34
579 查看
在把selenium的源码在myeclipse2013中构建时,pom.xml文件报错
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:properties-maven-plugin:1.0-alpha-1:write-project-properties (execution: default, phase: generate-resources)
原因是eclipse的m2e插件还没有支持到execution:http://wiki.eclipse.org/M2E_plugin_execution_not_covered
解决办法如下:
在<build> 和 <plugins> 直接加入 <pluginManagement>
例如:之前的代码如下
<build>
<plugins>
<!-- See http://maven.apache.org/plugins/maven-antrun-plugin -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy_java_files</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete dir="src/main/java" />
。。。。。
</configuration>
</plugin>
</plugins>
</build>
修改后的代码就是:
<build>
<pluginManagement>
<plugins>
<!-- See http://maven.apache.org/plugins/maven-antrun-plugin -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy_java_files</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete dir="src/main/java" />
。。。。。
</configuration>
</plugin>
</plugins>
</build>
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:properties-maven-plugin:1.0-alpha-1:write-project-properties (execution: default, phase: generate-resources)
原因是eclipse的m2e插件还没有支持到execution:http://wiki.eclipse.org/M2E_plugin_execution_not_covered
解决办法如下:
在<build> 和 <plugins> 直接加入 <pluginManagement>
例如:之前的代码如下
<build>
<plugins>
<!-- See http://maven.apache.org/plugins/maven-antrun-plugin -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy_java_files</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete dir="src/main/java" />
。。。。。
</configuration>
</plugin>
</plugins>
</build>
修改后的代码就是:
<build>
<pluginManagement>
<plugins>
<!-- See http://maven.apache.org/plugins/maven-antrun-plugin -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy_java_files</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete dir="src/main/java" />
。。。。。
</configuration>
</plugin>
</plugins>
</build>
相关文章推荐
- 异常处理:Eclipse下解决Plugin execution not covered by lifecycle configuration异常
- 异常处理:Eclipse下解决Plugin execution not covered by lifecycle configuration异常
- 使用m2e将工程转化为maven工程后eclipse报Plugin execution not covered by lifecycle configuration:xxx plugin问题的解决方法
- 【技巧】“Plugin execution not covered by lifecycle configuration...“异常的处理
- [转]解决Maven报错"Plugin execution not covered by lifecycle configuration"
- eclipse使用maven在pom配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- Eclipse Maven报错:Plugin execution not covered by lifecycle configuration
- eclipse maven plugin execution not covered by life cycle configuration
- Plugin execution not covered by lifecycle configuration解决
- 【问题处理】Plugin execution not covered by lifecycle configuration 最简单!!!
- maven的Plugin execution not covered by lifecycle configuration解决办法
- eclipse提示Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-com
- maven插件异常:Plugin execution not covered by lifecycle configuration
- 解决Maven报错"Plugin execution not covered by lifecycle configuration"
- 【问题处理】Plugin execution not covered by lifecycle configuration 最简单!!!
- Plugin execution not covered by lifecycle configuration 问题解决
- Plugin execution not covered by lifecycle configuration: 错误解决方法(亲试在多台电脑上可用)
- Eclipse 报Plugin execution not covered by lifecycle configuration
- 解决 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”
- 解决Maven出现Plugin execution not covered by lifecycle configuration 错误