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

    xiaoxiao2021-04-18  44

    错误描述

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

    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)

    出错信息截图:

    解决方案

    1、配置AspectJ插件AJDT

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

    根据Eclipse版本下载插件AJDT

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

    安装插件

    更新地址: http://download.eclipse.org/tools/ajdt/46/dev/update

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

    安装aspectj-maven-plugin插件

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

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

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

    转载请注明原文地址: https://ju.6miu.com/read-674611.html

    最新回复(0)