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 1212
执笔经年
执笔经年 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:36

    After entering your proxy settings in settings.xml

    <proxies>
    <!-- proxy 
     | Specification for one proxy, to be used in connecting to the network.
     |  -->
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>DOMAIN\YOURID</username>
      <password>123456</password>
      <host>proxy.company.com</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    
    </proxies>
    

    Check whether the below tag is having the value false in settings.xml

    <offline>false</offline>
    

    This helped me.

    0 讨论(0)
  • 2020-11-22 12:39
    his issue is happening due to change of protocol from http to https for central repository. please refer following link for more details. https://support.sonatype.com/hc/en-us/articles/360041287334-Central-501-HTTPS-Required 
    
    In order to fix the problem, copy following into your pom.ml file. This will set the repository url to use https.
    
    <repositories>
            <repository>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>central</id>
                <name>Central Repository</name>
                <url>https://repo.maven.apache.org/maven2</url>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <releases>
                    <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <id>central</id>
                <name>Central Repository</name>
                <url>https://repo.maven.apache.org/maven2</url>
            </pluginRepository>
        </pluginRepositories>
    
    0 讨论(0)
  • 2020-11-22 12:41

    I had the same problem but with an other cause. The solution was to deactivate Avira Browser Protection (in german Browser-Schutz). I took the solusion from m2e cannot transfer metadata from nexus, but maven command line can. It can be activated again ones maven has the needed plugin.

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

    Try downloading a different version of maven. I had the same problem with maven 3.5.2 , I solved my problem just downloading maven 3.0.4

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

    Follow easy steps to resolved the below issue: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact description for org.apache.maven.plugins:maven-ar-plugin:ar:2.4 in eclipse

    Solution: Step1:

    Step2:

    Issue solved

    0 讨论(0)
提交回复
热议问题