Am 2020-05-31 um 03:31 schrieb Hongyi Zhao:
Hi,
I'm using Ubuntu 20.04 and installed maven using ` sudo apt-get
install maven `. Now, I want to set socks5 proxy for maven.
We don't support Debian-packaged Maven versions for various reasons.
When I set
it via environment variable liek this:
export MAVEN_OPTS="-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=18887"
It can work smoothly.
Define works! what exactly works?
But if I set it by using ` ~/.m2/setting.xml ', the socks5 proxy
cannot be used at all. The content of the setting.xml file is as
following:
<proxies>
<proxy>
<id>ss</id>
<active>true</active>
<protocol>socks5</protocol>
<username></username>
<password></password>
<host>127.0.0.1</host>
<port>18887</port>
<nonProxyHosts>127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
If you want to use HTTP transport (Resolver/Wagon) via Socks 5 proxy, it
will not work because Apche HttpClient does not support Socks5 proxies
with our setup.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org