Maven proxy settings not working

后端 未结 10 1936
别那么骄傲
别那么骄傲 2020-12-05 15:53

I have setup maven proxy settings in conf/settings.xml as


  true
  http
  

        
相关标签:
10条回答
  • 2020-12-05 16:30

    I'm not sure if this is your problem but I noticed that I had to ensure that the https proxy came before http proxy in order to use an https proxy. It could be because they are the same hostname in my configuration.

    0 讨论(0)
  • 2020-12-05 16:35

    use mvn -X to see reading order of settings.xml

    use mvn help:effective-settings to see effective settings now

    0 讨论(0)
  • 2020-12-05 16:35

    If you are behind NTLM proxy, refer this solution that worked for me!

    If you are using some IDE Like IntelliJ etc... please make sure you are changing settings.xml of the same maven which IDE uses! I mean there may be bundled Maven and if you change your system maven settings.xml it is obvious it won't work!So check IDE configurations.Please specify IDE name if you want more help on it.

    Yes this one is silly but though worth to check out! check your system path environment variable for maven path which is exactly same of which settings.xml you are updating of.

    hope this helps!

    0 讨论(0)
  • 2020-12-05 16:37

    I had similar problem. After adding nonProxyHosts

    tag problem has been resolved. note that "zzz.zz.com" has to be replaced with your proper server.

    <proxy>
    ...
    ...
     <nonProxyHosts>localhost|127.0.0.1|zzz.zz.com</nonProxyHosts>
    ...
    ...
    </proxy>
    

    for details http://maven.apache.org/guides/mini/guide-proxies.html

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