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

来源:互联网 发布:axure mac安装教程 编辑:程序博客网 时间:2024/05/21 09:50

一个错误示例:

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


阅读全文
0 0
原创粉丝点击