Krishan Chawla

Back

Maven Proxy Configuration

Configure Maven Proxy to download maven dependencies behind organization's proxy.

📦 Package Management snippet cli ide

One common challenge in some environments is the inability to download Maven dependencies due to organizational proxies.

Add the below configuration in your settings.xml file.

<proxies>
    <proxy>
        <id>example-proxy</id>
        <active>true</active>
        <protocol>http</protocol>
        <host>proxy.example.com</host>
        <port>8080</port>
        <!-- Optional: Proxy username and password -->
        <!--<username>proxy-username</username>-->
        <!--<password>proxy-password</password>-->
        <!--<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>-->
    </proxy>
</proxies>
xml
Published: 12/5/2025

Back to DevTools