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 1236
执笔经年
执笔经年 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:25

    Try to delete all dirs in /usr/share/maven-repo - of course then maven will die so you must re-install and try again. In my case re-install from maven ver.3. to maven2 with deleting all repositories helped.

    I tried by deleting all from .m2 but that didn't help.

    0 讨论(0)
  • 2020-11-22 12:25

    I was getting the same issue.

    I just installed the m2e (Maven2Eclipse)plugin from below site:

    http://www.eclipse.org/m2e/
    

    Eclipse>Help>Install New Software>Available Software Sites>Add

    Name: m2e (any name is OK)
    Location:m2e - http://download.eclipse.org/technology/m2e/releases/
    

    Under Install Window> Work with:

    Select this new location and Add all the plugins that appear. Eclipse restart and it was running properly with no previous errors.

    0 讨论(0)
  • 2020-11-22 12:25

    Very old stuff.

    Got it solved fixing the localRepository in settings.xml. This file was copied from my other computer and the path of the .m2 repository wasn't the same.

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
      <localRepository>C:\Users\foo\.m2</localRepository>
    
    </settings>
    
    0 讨论(0)
  • 2020-11-22 12:26

    If you've configured a repository in your maven's settings.xml, check if you've access to it.

    When I had this problem, there were enterprise repositories configured in settings.xml but I was out of the company.

    0 讨论(0)
  • 2020-11-22 12:27

    I have shifted my project to a different machine, copied all my maven libraries from old machine to new machine, did Right click on my project >> Maven >> Update Project. And then built my project. In addition to this, I have also done this one step which is shown in screenshot. And that's all it worked!!

    Go to Window --> Preferences --> Maven --> User Setting, make sure you have these settings..

    Also Right click on your project --> Properties --> Maven, and make sure you have the path here to maven repository..

    0 讨论(0)
  • 2020-11-22 12:28

    If you have a proxy, you also have to clear SOCKS in

    Window > Preferences > Network Connections.
    
    0 讨论(0)
提交回复
热议问题