- 切换到{maven.home}conf (ie: maven 安装目录)
- 拷贝settings.xml到自己的.m2目录
- 编辑.m2/settings.xml的代理部分:
<proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <!-- <username>proxyuser</username> <password>proxypass</password> --> <host>ip</host> <port>port</port> <nonProxyHosts>localhost</nonProxyHosts> </proxy>