Maven Proxy Configuration

Wondering how to configure a proxy for maven?
Your proxy can be configured as below in maven:

1) Open <m2_HOME>/conf/settings.xml

2) Uncomment: <proxy> elements

For example:

  <proxies>   
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>this.is.a.proxy.com</host>
      <port>80</port>
      <nonProxyHosts>localhost</nonProxyHosts>
    </proxy>
  </proxies>


Comments