Monday, October 15, 2012

Configuring Maven inside proxy network

Maven version I used is 3.0.4 and environment is windows 7 enterprise edition.

Well, it is pretty simple,

collect your proxy server and port configuration and if username and password  are there then them too and save them in your settings.xml.
Settings.xml can be found either in <userhome>/.m2/settings.xml (Apache documentation tells about this path but I couldn't find it in this location, link to proxy config doc.. proxy config mini guide) or (I found them in this path <maven unzipped directory>/config/settings.xml, in my case path was D:/apache-maven-3.0.4/config/settings.xml)
Now, you have to uncomment this section from settings.xml and save the correct info here as shown:
 
    
    
      optional
      true
      http
      proxyuser
      proxypass
      Your Proxy server IP Here
      Your proxy server port numbere here
      local.net|some.host.com
    
    
  

Related Articles

Eclipse proxy setting

No comments:

Post a Comment