The Maven Cookbook
10.6. Using Mirrors for Proxy Repositories
You want to help ease the traffic and bandwidth burden on the Central Maven repository by configuring your Nexus instance to use a mirror to download artifacts.
Once you have created a proxy repository, you should configure Nexus to download artifacts from one or more mirrors. To configure mirrors, click on Repositories under the View/Repositories section of the Nexus menu, select the proxy repository you want to configure, and then select the Mirrors tab for this repository. Clicking on the Mirrors tab will display the form shown in Figure 10.10, “Configuring Mirrors for Proxy Repositories”.
The Central Maven repository contains an XML file which will be used to populate the mirrors dropdown shown in Figure 10.10, “Configuring Mirrors for Proxy Repositories”. To configure a mirror, select it from the dropdown, and click on the Add button to add the mirror to the list of Mirror URLs.
When a proxy repository is confgured to retrieve artifacts from a Mirror, it will consult each configured mirror in the order shown in the Mirror URLs list from Figure 10.10, “Configuring Mirrors for Proxy Repositories”. While Nexus will retrieve POM information, checksums, and PGP signatures from the original repository, it will retrieve all artfiacts directly from the first available mirror.