Plugin execution not covered by lifecycle configuration的解决方案
来源:互联网 发布:人工智能都有哪些 编辑:程序博客网 时间:2024/05/21 01:54
pom配置文件中,提示错误:Plugin execution not covered by lifecycle configuration。
如图:
这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错。增加声明即可解决
两种方法就行修复:
一.通过eclipse,自动修复;鼠标放在出错处,出现提示框,点击“Mark goal run as....”即可。
二.手动修改:
进入Window—>Preferences—>Maven配置,进入Lifecycle Mapping设置项,如下图:
从上图可以看出m2e管理maven生命周期的文件名是lifecycle-mapping-metadata.xml,以及该文件的存放路径。
但是进入目录后,发现没有lifecycle-mapping-metadata.xml文件,所有需要手动创建文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?><lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <versionRange>1.3</versionRange> <goals> <goal>run</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions></lifecycleMappingMetadata>
修改完成后,进行“update project”操作:
其实,第二种方法,就是eclipse自动完成的内容。
0 0
- 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...
- 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
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- Plugin execution not covered by lifecycle configuration
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- 在POM配置Maven plugin提示错误“Plugin execution not covered by lifecycle configuration”的解决方案
- python 安装
- jquery的ajax详解
- Windows2008 r2 x64下安装FTP工具File Zilla server报错:could not load tls libraries filezilla
- Java NIO系列教程(九) ServerSocketChannel
- ETC1压缩纹理格式
- Plugin execution not covered by lifecycle configuration的解决方案
- 支付宝网页支付
- Delphi Math里的基本函数,以及浮点数比较函数
- Java NIO系列教程(九) ServerSocketChannel
- Android TTS文本转语音TextToSpeech
- vim实用命令分类
- Java NIO系列教程(十) Java NIO DatagramChannel
- CY_经验002
- SS3.3_Hibernate_Log4j&JUnit 日志处理框架和单元测试