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目录下
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目录下