Maven: Failed to retrieve plugin descriptor error

前端 未结 15 1726
粉色の甜心
粉色の甜心 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:05

    I had a similar issue with Eclipse and the same steps as Sanders did solve it. It happens because the proxy restricts call to maven repository

    1. Go to D:\Maven\apache-maven-3.0.4-bin\apache-maven-3.0.4\conf (ie your maven installation folder)
    2. Copy settings.xml and paste it in .m2 folder, which is in the users folder of your windows machine.
    3. Add the proxy setting

    Something like this:

     
        
              
          true
          http
          your username
          password    
          proxy.host.net
          80  
        
    
      
    

提交回复
热议问题