把maven安装目录下的conf/settings.xml复制一份到~/.m2/下
在<proxies>标签中添加
<proxy> <id>socks5</id> <active>true</active> <protocol>http</protocol> <username></username> <password></password> <host>127.0.0.1</host> <port>1080</port> <nonProxyHosts>127.0.0.1</nonProxyHosts> </proxy>
时间: 2024-12-18 06:52:00