Skip to content

Instantly share code, notes, and snippets.

@ucguy4u
Created September 18, 2020 09:40
Show Gist options
  • Save ucguy4u/6b45fcbde0ee28686d23401171a627d3 to your computer and use it in GitHub Desktop.
Save ucguy4u/6b45fcbde0ee28686d23401171a627d3 to your computer and use it in GitHub Desktop.
To set Maven Proxy : Edit the proxies session in your ~/.m2/settings.xml file. If you cant find the file, create one or Edit the proxies session in your {M2_HOME}/conf/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<proxies>
<proxy>
<id>httpproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>your-proxy-host</host>
<port>your-proxy-port</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
<proxy>
<id>httpsproxy</id>
<active>true</active>
<protocol>https</protocol>
<host>your-proxy-host</host>
<port>your-proxy-port</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment