Maven
(版本是3.0.5
)设置代理应该是在${HOME}/.m2/settings.xml
文件:
$ cat /home/nan/.m2/settings.xml
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>web-proxy.xxxxxx.com</host>
<port>8080</port>
</proxy>
</proxies>
</settings>