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

一个错误示例:

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




- 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项目之后,错误解决!


posted @ 2017-05-27 11:22  vtopqx  阅读(26)  评论(0)    收藏  举报