Creating a proxy repository
By default, Nexus comes with following three proxy repositories:
- Central: The central proxy repository is available at https://repo1.maven.org/maven2/
- Apache snapshots: The Apache snapshots proxy repository is available at https://repository.apache.org/snapshots/
- Codehaus snapshots: The Codehaus proxy repository is available at https://nexus.codehaus.org/snapshots/
Let's look at how to create a set of proxy repositories in Nexus. Then we will create a group repository by combining them all. In your Maven project, you only need to add a reference to the group repository. The following steps are to be followed while creating the proxy repositories:
- Go to
http://localhost:8081/nexus
and log in asadmin
. - Navigate to Views/Repositories ...
Get Mastering Apache Maven 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.