解决Maven报Plugin execution not covered by lifecycle configuration
来源:互联网 发布:网络语言暴力的定义 编辑:程序博客网 时间:2024/05/22 15:59
错误:Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.7:run (execution: define-classpath, phase: process-resources)
官网解决方法:https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩展机制的,我们可以通过如下操作来消除这个出错提示:
1. 进入Window—>Preferences—>Maven配置,进入Lifecycle Mapping设置项,如下图:
2. 下一步找到文件的存放路径,修改lifecycle-mapping-metadata.xml文件,提示的位置并不存在,那么此时就到eclipse的安装目录下的plugins下的org.eclipse.m2e.lifecyclemapping.defaults_xxxxxx.jar文件中找到该文件(如下图),将文件从jar包中解压出来粘贴到之前的文件路径下。
3. 打开lifecycle-mapping-metadata.xml文件,添加如下:
<pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <goals> <goal>run</goal> </goals> <versionRange>[1.7,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution>
4.修改Maven配置,选择“Update Maven projects on startup”,重启eclipse。
阅读全文
0 0
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报Plugin execution not covered by lifecycle configuration
- Maven报Plugin execution not covered by lifecycle configuration
- 解决Maven报错"Plugin execution not covered by lifecycle configuration"
- 解决Maven中pom.xml报plugin execution not covered by lifecycle configuration
- Jacoco Maven Plugin - Plugin execution not covered by lifecycle configuration
- Eclipse m2e报Plugin execution not covered by lifecycle configuration
- Eclipse 报Plugin execution not covered by lifecycle configuration
- Maven项目:Plugin execution not covered by lifecycle configuration 解决方案
- maven Plugin execution not covered by lifecycle configuration
- 解禁 MAVEN “Plugin execution not covered by lifecycle configuration” 问题
- maven的Plugin execution not covered by lifecycle configuration解决办法
- Maven pom.xml “Plugin execution not covered by lifecycle configuration”
- onActivityResult和putExtra的用法
- 算法重学
- 一些重要的数据结构(file_operation,file和inode)
- 你所不知的 CSS ::before 和 ::after 伪元素用法
- Python的定义编码以及注释等
- 解决Maven报Plugin execution not covered by lifecycle configuration
- (2017 ICML)Learning to learn without gradient descent by gradient descent笔记
- Redis配置文件详解
- ViewPager 16种切换动画,早晚能用到
- java笔记整理
- Fedora27安装wxPython2.8.12.1时遇到的问题及解决
- Flume日志收集分层架构应用实践
- 控制线程
- 数组中出现次数超过一半的数字