STS,pom.xml错误,在此行找到多个注释

时间:2012-06-06 23:15:12

标签: spring pom.xml

我刚刚使用STS IDE从Spring Template创建了一个简单项目,但是pom.xm显示错误:

Multiple annotations found at this line:
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:
     2.4.3:resources (execution: default-resources, phase: process-resources)
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:
     2.4.3:testResources (execution: default-testResources, phase: process-test-resources)

我花了很长时间搜索问题但找不到解决方案,谢谢。

1 个答案:

答案 0 :(得分:0)

尝试在项目的根文件夹上运行mvn eclipse:eclipse(您需要先下载maven并将其添加到类路径中)。