pom.xml在Eclipse中显示多个注释错误

问题描述 投票:1回答:1

我可以从命令行构建项目,但是当我将它导入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,我的系统也使用相同的版本。

这个错误的原因是什么?怎么解决?

java eclipse maven m2eclipse
1个回答
0
投票
  1. 您应该安装或更新M2Eclipse,即Maven集成 日食
  2. 重启eclipse
  3. 删除项目并再次添加项目

这应该可以解决您的错误

© www.soinside.com 2019 - 2024. All rights reserved.