错误描述

一个错误示例,子项目引用了父项目,子项目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上鼠标右键,如图

这里写图片描述

这里写图片描述

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

GitHub 加速计划 / ma / maven
36
0
下载
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:16 天前 )
7872c6d8 Changes: * update Mimir to latest 0.8.1 version * update infusers as well * cache changes (see below) Cache strategy changes: * initial build: it is snowballing one cache when build is not about PR * full (rebuild itself + site with itself) and its build: it is snowballing cache differentiated by OS/JDK when build is not about PR Current problems: on unchanged POM (ie. new IT added), the dependencies ITs pull from Central will be cached by Mimir, but due "cache hit" the new cache will not get stored. Hence, Mimir caching was basically lost. Also, there was a mixup of caches from PRs and main branches. Finally, matrix jobs were competing for cache store. 1 天前
c999cff6 Accept ONLY documented forms of them. Fixes #10210 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐