1.报错内容:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (execution: default- testResources, phase: process-test-resources) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (execution: default-resources, phase: process-resources)
2
3.解决方法:在pom.xml文件内添加如下代码:
<build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <versionRange>[2.0,)</versionRange> <goals> <goal>resources</goal> <goal>testResources</goal> </goals> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>
4此时报错问题解决
5
6此时发现的错误是由于未刷新项目导致的,见上图按照上图提示解决即可,(alt+F5)
7
8
9
10.问题解决
11.原因分析:个人猜测可能是由于jar包冲突所致(鄙人小白),希望大神给予详细解答,十分感谢!