没有找到Plugin execution not covered by lifecycle
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.8:run (execution: default, phase: compile)
第一发现步骤
1、由于我要调整的系统是spring boot加spring cloud(idea已经集成了springboot的插件)的,由于我本地的eclipse没有安装spring boot插件,我怀疑pom.xml是原因出在这,毕竟没有安装spring boot ,这是问题的根源
2、安装好了,对项目进行更新maven,依旧发现这个问题,我去Windows-preferences-maven-lifecycle Mapping里查看,拿到lifecycle的地址去看本地有没有,发现是没有,我在博客看到也就两种方法是,如下:
第一种是在外面套一层 标签(我试过了,我的不行)
第二种在Windows-preferences-maven-lifecycle Mapping里选择打开lifecycle-mapping-metadata.xml(点击open workspace lifecycle Mappings metadata)后添加(如下,记得groupId和versionRange要改成你自己的版本),然后点击reload workspace lifecycle mappings metadata,然后点应用就行了(我试过了,我的不行)
来自https://blog.csdn.net/xxd851116/article/details/25197373
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<goals>
<goal>compile</goal>
</goals>
<versionRange>[1.3,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
解决方法
1、直接在pom.xml添加
在这里插入代码片
```![在这里插入图片描述](https://img-blog.csdnimg.cn/20190619104551465.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NTI2NjIzNg==,size_16,color_FFFFFF,t_70)
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.8,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
推荐阅读
-
maven项目-修复Plugin execution not covered by lifecycle configuration: org.codehaus.
-
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8:add-test-source (execution: add-functional-so
-
没有找到Plugin execution not covered by lifecycle
-
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.8:add-test-source (execution: add-functional-so
-
maven项目-修复Plugin execution not covered by lifecycle configuration: org.codehaus.
-
pom文件报Plugin execution not covered by lifecycle configuration。
-
Maven:Plugin execution not covered by lifecycle