2013年10月9日星期三

Setting Maven behind corporate proxy

Under windows based infrastructure, the proxy setting can be found with opening  
Internet Explorer -> Tools -> Internet Options -> Connection -> LAN Settings

and there normally be a "xxxxx.xxxxx.pac' file in an entry field of the pane.

Open the file with browser and notepad if it prompts asking for what to open with and find this line at the bottom:

return "PROXY 10.65.32.100:8080";

This is the proxy setting that Maven needs to know, therefore, find the Maven setting.xml file under %M2_REPO% and add such section:


  
 
  amp
  true
  http
  JNGJSQ
  Welcome1
  10.65.32.100
  8080
  www.google.com|hub.amp.com.au
 
  
Thus the Maven should be able to connect to its central repository and starting downloading dependencies.

没有评论:

发表评论