Could not calculate build plan :artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 is not available in the local repository

后端 未结 5 510
野趣味
野趣味 2020-12-18 00:35

I have a spring maven 2 project. I built it in terminal and everything is ok, I got build success, but when trying to import it to eclipse I got this error:

5条回答
  •  误落风尘
    2020-12-18 01:09

    add below line to your pom.xml and build it through command line using ‘mvn install’. That will download the plugin and then try to build from Eclipse. make sure your Eclipse is using the same Maven not the embeded one. If you are still having issues, delete it from local repository and try again. The line to add is

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

    before doing that find where your local repo is, then go to "/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/", remove the contents and do "update dependencies" from Maven.

提交回复
热议问题