[英]Maven - how to set socks proxy via settings.xml
I wonder how I could set a SOCKS proxy for maven via the ~/.m2/settings.xml? 我想知道如何通过〜/ .m2 / settings.xml为maven设置SOCKS代理? Yes, I know there is a recipe to do this via MAVEN_OPTS environment variable .
是的,我知道有一个配方可以通过MAVEN_OPTS环境变量来完成 。 But I would like to set this in the settings.xml within the <proxies> section.
但是我想在<proxies>部分的settings.xml中设置它。 Which kind of protocol should I use?
我应该使用哪种协议? I already tried
我已经试过了
Regs, Gerd Regs,Gerd
This is my setting, and it worked fine for me,hope useful: 这是我的设置,它对我来说很好,希望有用:
<proxy>
<id>ss</id>
<active>true</active>
<protocol>socks5</protocol>
<username></username>
<password></password>
<host>127.0.0.1</host>
<port>1080</port>
<nonProxyHosts>127.0.0.1</nonProxyHosts>
</proxy>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.