frontend-maven-plugin
frontend-maven-plugin copied to clipboard
Support socks5 proxy
Do you want to request a feature or report a bug?
What is the current behavior?
I configured a socks5
proxy in my .m2/settings.xml
<proxy>
<id>v2ray-socks5</id>
<active>true</active>
<protocol>socks5</protocol>
<username></username>
<password></password>
<host>127.0.0.1</host>
<port>1089</port>
<nonProxyHosts>localhost|maven.aliyun.com</nonProxyHosts>
</proxy>
But the plugin use http
protocol on this socks5 proxy.
[INFO] Downloading via proxy v2ray{protocol='socks5', host='127.0.0.1', port=1089, nonProxyHosts='localhost|maven.aliyun.com'}
Jul 11, 2021 11:07:38 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443: The target server failed to respond
INFO: Retrying request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443: The target server failed to respond
Jul 11, 2021 11:07:38 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443
Jul 11, 2021 11:07:39 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443: The target server failed to respond
Jul 11, 2021 11:07:39 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {tls}->http://127.0.0.1:1089->https://nodejs.org:443
I changed the protocol to http
in .m2/settings.xml
and the download succeed.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Use the right protocol in proxy.
Please mention your frontend-maven-plugin and operating system version. macOS 11.4 with Apple M1 Plugin version: 1.12.0