The Maven Cookbook

10.. Grouping Repositories

10.. Grouping Repositories

10..1. Task

You want to consolidate access to multiple repositories with a single repository URL.

10..2. Action

Nexus Open Source provides for the ability to group one or more repositories into a Repository Group. The default installation of Nexus is preconfigured with two Repository Groups: Public Repositories and Public Snapshot Repositories. Public Repositories groups all of the repositories with a Release policy together, and Public Snapshot Repositories groups all of the repositories with a Snapshot policy together. To add a repository to the Public Repositories group, click on Repositories under the View/Repositories section of the Nexus menu, and then click on the Repository Group that you want to add a Repository to. Once the group is selected, click on the Configuration tab shown in Figure 10.11, “Adding a Repository to a Repository Group”, and drag the repository you wich to add from the Available Repositories list to the Ordered Group Repositories list.

Adding a Repository to a Repository Group

Figure 10.11. Adding a Repository to a Repository Group


To add a new Repository Group, click on the Add.. button and choose Repository Group.

Adding a New Repository Group

Figure 10.12. Adding a New Repository Group