Software Development

How to configure Maven to use proxy to connect to the network

Background

This article demonstrates how configure Apache Maven to use proxy to connect to the network.

[wp_ad_camp_1]

Software Environment

  • Windows 7 Professional SP1
  • Apache Maven 3.1.1
  • Java 1.7 (1.7.0_67 – Windows x86)

Modify conf/settings.xml

[wp_ad_camp_2]

  1. Download the Apache Maven from http://maven.apache.org/
  2. Extract the zip file to some directory
  3. Navigate to conf directory and open settings.xml

Modify the proxies tag

Add the <proxy></proxy> tags within <proxies></proxies>. Below is a sample set up for <proxy>.

[wp_ad_camp_3]

Loading

Got comments or suggestions? We disabled the comments on this site to fight off spammers, but you can still contact us via our Facebook page!.


You Might Also Like