Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

前端 未结 29 1669
执笔经年
执笔经年 2020-11-22 11:56
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Faile         


        
29条回答
  •  我在风中等你
    2020-11-22 12:31

    Some files where missing at your local repository. Usually under ${user.home}/.m2/repository/

    Neets answer solves the problem. However if you dont want do download all the dependencies to your local repository again you could add the missing dependency to a project of yours and compile it.

    Use the maven repository website to find the dependency. In your case http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin/2.5 was missing.

    Copy the listed XML to the pom.xml file of your project. In this case

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

    Run mvn compile in the root folder of the pom.xml. Maven will download all missing dependencies. After the download you can remove the added dependency.

    Now you should be able to import the maven project or update the project without the error.

提交回复
热议问题