set HTTP proxy :
1. first test weather your internet environment is reachable to the maven repository :
ping repo1.maven.org
2. if can not reach you can use the proxy , first also we will test the useable of the proxy :
telent xxx.xxx.xxx.xxx xxxx
(If system is WIN 7 use the follow step first :
控制面板---程序和功能---打开或关闭windows功能---勾选telnet
退出 telnet : ctrl + ] , q .
)
<proxy> <id>my-proxy</id> <active>true</active> <protocol>http</protocol> <host>xxx.xxx.x.xxx</host> <port>xxx</port> <nonProxyHosts> *.google.com </nonProxyHosts>(for the request end with google.com do not use proxy) </proxy>