Maven中代理服务器的设定
1、下载
Maven后,解压缩
2、设定 MAVEN_HOME环境变量 3、将 ${MAVEN_HOME}/bin加入 Path中 4、编辑 ${MAVEN_HOME}/bin/settings.xml中的Proxies块如下 <proxies> <!-- proxy | Specification for one proxy, to be used in connecting to the network. | --> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>user</username> <password>password</password> <host>100.100.10.10</host> <port>8080</port> <nonProxyHosts></nonProxyHosts> </proxy> </proxies> 5、将编辑好的 ${MAVEN_HOME}/bin/settings.xml文件拷贝到 C:/Documents and Settings/${user}/.m2目录下 |
原文来自http://hi.baidu.com/btb368/blog/item/cc6e783f4d3b583b70cf6cd6.html