Created
January 18, 2013 01:35
-
-
Save baijian/4561566 to your computer and use it in GitHub Desktop.
maybe when you new project using maven, when downloading *.jar, so slow, so you can set a proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.m2/settings.xml | |
<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> | |
if you proxy is SSH tunnel,then | |
export MAVEN_OPTS="-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=$PORT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment