创建maven项目工程packaging报错

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创建maven项目工程packaging报错_第1张图片创建maven项目工程packaging报错_第2张图片

3.解决方法:在pom.xml文件内添加如下代码:


 
       
           
                org.eclipse.m2e
                lifecycle-mapping
                1.0.0
               
                   
                       
                           
                               
                                    org.apache.maven.plugins
                                    maven-resources-plugin
                                    [2.0,)
                                   
                                        resources
                                        testResources
                                   

                               

                               
                                   
                               

                           

                       

                   

               

           

       

   

   

4此时报错问题解决

5创建maven项目工程packaging报错_第3张图片


6此时发现的错误是由于未刷新项目导致的,见上图按照上图提示解决即可,(alt+F5)

7创建maven项目工程packaging报错_第4张图片

8

9创建maven项目工程packaging报错_第5张图片创建maven项目工程packaging报错_第6张图片

10.问题解决

11.原因分析:个人猜测可能是由于jar包冲突所致(鄙人小白),希望大神给予详细解答,十分感谢!

你可能感兴趣的:(spring,question)