maven中设置代理服务器

打开%m2_home%/bin/settings.xml,增加如下一段:

<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies> .
</settings>
完成后保存,再往c:\document and setting\\.m2\下面复制一份即可。



猜你喜欢

转载自bonjoviu2.iteye.com/blog/847378
今日推荐