Skip to main content

Adding a New Repository in Nexus Repository 2

Nexus Repository 2

To add a repository, log in as an administrator, and click on the Repositories link in the left-hand navigation menu in the Views/Repositories section.

Clicking on this link should bring up a window that lists all the configured repositories as displayed in Figure 4.1, “Creating a New Proxy Repository”. You’ll then want to create a new proxy repository. To do this, click on the Add button that is directly above the list of repositories. From the resultant options, since you are creating a proxy repository, click on Proxy Repository.

5410351.png

Figure 4.1. Creating a New Proxy Repository

Once you do this, you will see a screen resembling Figure 4.2, “Configuring a Proxy Repository”. Populate the required fields Repository ID and Repository Name. The Repository ID will be part of the URL used to access the repository, so it is recommended to avoid characters that could cause problems there or on the filesystem storage. It is best to stick with lowercase alphanumerics. Set the Repository Policy to Release, and the Remote Storage Location to the public URL of the repository you want to proxy.

5410350.pngOnce you’ve filled out this screen, click on the Save button. The repository manager is now configured to proxy the repository. If the remote repository contains snapshots as well as release components, you will need to repeat the process creating a second proxy repository and setting the Repository Policy to Snapshots.