Repository Management with Nexus


4.3. Adding Repositories for Missing Dependencies

If you’ve configured your Maven settings.xml or other build tool configuration to use the Nexus public repository group as a mirror for all repositories, you might encounter projects that are unable to retrieve artifacts from your local Nexus installation.

This usually happens because you are trying to build a project that has defined a custom set of repositories and snapshot repositories or relies on the content of other publically available repositories in its configuration. When you encounter such a project all you have to do is

  • add this repository to Nexus as a new proxy repository
  • and then add the new proxy repository to the public group.

The advantage of this approach is that no configuration change on the build tool side is necessary at all.