m2eclipse error

前端 未结 17 1155
忘掉有多难
忘掉有多难 2020-12-07 09:58

I am developing a web application with Eclipse and I generate the project with a maven archetype.

When I enable maven dependency management, Eclipse mark some errors

17条回答
  •  孤街浪徒
    2020-12-07 10:31

    I had same problem with Eclipse 3.7.2 (Indigo) and maven 3.0.4.

    In my case, the problem was caused by missing maven-resources-plugin-2.4.3.jar in {user.home}\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4.3 folder. (no idea why maven didn't update it)

    Solution:

    1.) add dependency to pom.xml

    
        org.apache.maven.plugins
        maven-resources-plugin
        2.4.3
    
    

    2.) run mvn install from Eclipse or from command line

    3.) refresh the project in eclipse (F5)

    4.) run Maven > Update Project Configuration... on project (right click)

    JAR file is downloaded to local repository and there are no errors in WS.

提交回复
热议问题