Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

时间:2022-01-10 10:39:59

错误描述

一个错误示例,子项目引用了父项目,子项目parent标签处报错如下:

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Pom.xml文件异常日志:

Multiple markers at this line
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.0:testCompile (execution: default-testCompile, phase: test-compile)

出错信息截图:

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

解决方案

1、配置AspectJ插件AJDT

确定Eclipse的版本:Help->About Eclipse

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

根据Eclipse版本下载插件AJDT

下载地址:http://www.eclipse.org/ajdt/downloads/

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

安装插件

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration
更新地址: http://download.eclipse.org/tools/ajdt/46/dev/update

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

等待下载安装,完成后重启Eclipse–查看Windows–Preferences–AspectJ

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

安装aspectj-maven-plugin插件

插件安装路径:http://dist.springsource.org/release/AJDT/configurator/

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

eclipse重启后,在你的Maven Project上鼠标右键,如图

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

Eclipse+Maven工程异常:Plugin execution not covered by lifecycle configuration

不再显示错误,问题解决!