maven in 5 min not working

前端 未结 7 1032
花落未央
花落未央 2020-12-01 06:47

I have downloaded latest

maven 3.0.3, java version \"1.6.0_18\".

mvn –version

Apache Maven 3.0.3 (r1075438;          


        
7条回答
  •  天命终不由人
    2020-12-01 07:20

    We have observed that the maven project creation fails when it tries to download the archtype from this URL: Maven Repository which falls under "https" protocol.

    So solution #2 mentioned above worked only after a little change to the settings.xml. Instead of using "http" protocol I have to use "https"

    
      optional
      true
      https          
      web-proxy.ind.abc.com
      8080          
    

    Hope it helps someone.

    Note: Make sure that you check the following internet settings.

    Internet Explorer > Internet Options > Connections [TAB] > LAN Settings > Under Proxy server check Use proxy server for LAN > Advanced > Check "same proxy server for all protocols" and Click OK.

提交回复
热议问题