How to configure a proxy server for both HTTP and HTTPS in Maven's settings.xml?

后端 未结 4 1670
無奈伤痛
無奈伤痛 2020-12-30 19:04

I\'m using Maven 3.1.1 behind a proxy server. The same proxy handles both HTTP and HTTPS traffic.

I can\'t seem to tell maven using s

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 19:58

    Maven proxy from settings.xml is used for both http and https, so you just need to define one proxy server and it will be used for both, you just need to leave only one proxy tag, like this:

    
        
            myhttpproxy
            true
            http
            192.168.1.2
            3128
            localhost
        
    
    

    The protocol above is the protocol of the proxy server, not the proxied request.

提交回复
热议问题