我可以从命令行构建项目,但是当我将其导入 Eclipse 时,我在 pom.xml 中收到以下错误:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-resources-plugin:2.6:testResources
(execution: default-testResources, phase: process-test-resources)
- Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-resources-plugin:2.6:resources
(execution: default-resources, phase: process-resources)
Eclipse Maven Integration插件使用的是Maven版本3.2.1
,我的系统也使用相同的版本。
此错误的原因可能是什么?如何解决?
最佳答案
- 您应该安装或更新 M2Eclipse,即 Maven 集成
eclipse - 重新启动eclipse
- 删除项目并重新添加项目
这应该可以解决您的错误
关于java - pom.xml 在 Eclipse 中显示多个注释错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24743054/