How to enable a proxy setting in Maven?

By | November 1, 2020

In this post, We will learn How to enable a proxy setting in Maven?

Steps to Enable  a proxy setting in Maven:

  1. First of all, You have to locate your maven settings.xml file from Eclipse -> Preferences -> Maven -> User Settings 
    Default locations:

    For Linux: /home/{username}/.m2/

    For Windows: C:\Users\{username}\.m2\

    2. Add the following XML code to the settings.xml file

3. Modify the username, password host, and port attributes in the above XML block to match your proxy setting configuration.
4.Finally You have to go to Eclipse -> Preferences -> Maven -> User Settings and click on “Update Settings” to reload your proxy config changes in settings.xml.

That’s Yet!!

That’s all about How to enable a proxy setting in Maven?
If you have any feedback or suggestion please feel free to drop in below comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *