Maven Proxy Settings

Maven need to be configured with proxy settings if you are running maven behind firewall in corporate companies. How to configured proxy in maven using eclipse.


Eclipse Maven Proxy Settings: 

  • Click on Window -> Preferences -> Maven -> User Settings in eclipse
  • We can configure this is Global settings also if you want to use this for all POM
  • Create file settings.xml file in  USER_HOME\.m2 directory if not exist.
  • Maven Proxy

Copy the below proxies in settings.xml file

maven settings.xml

<settings xmlns=""

There are other configurations we can configure in settings.xml file


<settings xmlns=""
 <id>Server _ID</id>
  •  set offline to true if maven to run in localmode and not to connect server”
  • localRepository :  Set the custom maven repository here  if it is  different from default maven repository USER_HOME/.m2/repository
  • servers –  In pom.xml we can configure repositories to configure and repository credentials will be configured in settings.xml file
  • profiles – we can configure repositories under profile section



Leave a Comment

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