Maven经典错误之二- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-mave

时间:2023-01-26 10:03:03

一个错误示例:

maven使用子父项目继承关系,子项目引用了父项目,子项目parent标签处报错如下:

Maven经典错误之二- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-mave

Maven经典错误之二- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-mave


- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:******* (execution: 

 default, phase: validate) 错误。



解决方法:

给父工程pom.xml加上<pluginManagement>

即:

		<plugins>
<pluginManagement>
<!--java 文档生成插件-->
<plugin>
<groupId>****</groupId>
<artifactId>****</artifactId>
<version>****</version>
</plugin>
<pluginManagement>
</plugins>



重新update maven项目之后,错误解决!