Maven: Failed to retrieve plugin descriptor error

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

    I have to put

     
      optional
      true
      http
      Your proxy host
      proxy host ip
      local.net|some.host.com
    
    

    Before

     
      optional
      true
      https
      Your proxy host
      proxy host ip
      local.net|some.host.com
    
    

    Weird, but yes!, http has to come before https. It solved my problem. Hope it helps someone who faces connections issue even after enabling proxy settings in conf/settings.xml.

提交回复
热议问题