Maven: Failed to retrieve plugin descriptor error

前端 未结 15 1718
粉色の甜心
粉色の甜心 2020-11-28 23:23

I configured Maven 3.0.3 and tried to download a sample project using archetypes with this command:

mvn archetype:generate -DarchetypeGroupId=org.graniteds.         


        
相关标签:
15条回答
  • 2020-11-29 00:15

    I had the same issue in Windows

    and it worked since my proxy configuration in settings.xml file was changed

    So locate and edit the file inside the \conf folder, for example : C:\Program Files\apache-maven-3.2.5\conf

    <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>jorgesys</username>
          <password>supercalifragilisticoespialidoso</password>
          <host>proxyjorgesys</host>
          <port>8080</port>
          <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
        </proxy>
        -->
      </proxies>
    
    • In my case i had to chage from port 80 to 8080
    • If you can´t edit this file that is located inside /program files you can make a copy, edit the file and replace the file located into /program files folder.
    0 讨论(0)
  • 2020-11-29 00:21

    Thank it worked...

    edit setting.xml

    and replace proxy with this

    Its working 100%

    <proxy>      
      <active>true</active>
      <protocol>http</protocol>
      <username>your username</username>
      <password>password</password>    
      <host>proxy.host.net</host>
      <port>80</port>  
    

    0 讨论(0)
  • 2020-11-29 00:23

    I had to change my password to the latest in the user.home/.m2/settings.xml file!

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