How to configure proxy in Maven?
- The default location for the settings file is ~/.m2/settings.xml.
- Please make sure your settings.xml is secured with permissions appropriate for your operating system.
-
<settings>
..
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>locaproxy.com</host>
<port>888</port>
<username>username</username>
<password>yourpassword</password>
<nonProxyHosts>www.website1.com|*.website2.com</nonProxyHosts>
</proxy>
</proxies>
..
</settings>