Skip to content

Instantly share code, notes, and snippets.

@abdulhadad
Created February 9, 2018 11:11
Show Gist options
  • Save abdulhadad/95c432f733bd279f92d2cf0eafc78d81 to your computer and use it in GitHub Desktop.
Save abdulhadad/95c432f733bd279f92d2cf0eafc78d81 to your computer and use it in GitHub Desktop.
Maven proxy settings, .m2\settings.xml file
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>myhttpproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
</proxy>
<proxy>
<id>myhttpsproxy</id>
<active>true</active>
<protocol>https</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
</proxy>
</proxies>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment