Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proxy repository VS hosted repository

According to Nexus book, hosted repository is "a repository that is hosted by Nexus." and the 3rd party repository (a hosted repository) should be used for third-party dependencies not available in the public Maven repositories.

What's the difference between hosted repository and proxy repository? For example, JBoss release is referenced as a proxy repository. Why isn't JBoss release a 3rd party repository? Does it really matter to define it as a hosted repository or proxy repository?

like image 466
user697911 Avatar asked Aug 09 '15 06:08

user697911


People also ask

What is proxy repository?

A proxy repository is a substitute access point and managed cache for remote repositories. These could be the public repositories for open source components or private repositories such as another Nexus Repository for instance.

How many different kinds of repositories are provided by Nexus?

Nexus Repository Manager provides for three different kinds of repositories: Proxy repositories, Hosted repositories and Virtual repositories.

What is group repository in Nexus?

Repository groups are a powerful feature of Nexus Repository Manager. They allow you to combine multiple repositories and other repository groups of the same repository format in a single repository group.

What is Nexus proxy?

A proxy for Nexus Repository Manager that allows for optional authentication against external identity providers.


1 Answers

I'm not sure what you don't find clear in the Nexus Book. The short version is, a proxy repository is one that you are mirroring, and a hosted repository is one that you host on your server through the Nexus software. Hosted includes third party libraries that aren't public for some reason, see below.

6.2.1. Proxy Repository

A Proxy Repository is a proxy of a remote repository. By default, Nexus ships with the following configured proxy repositories:

Apache Snapshots

This repository contains snapshot releases from the Apache Software Foundation.

Codehaus Snapshots

This repository contains snapshot releases from Codehaus.

Central

This is the Central Repository containing release components. Formerly known as Maven Central, it is the default built-in repository for Apache Maven and directly supported in other build tools like Gradle, SBT or Ant/Ivy. Nexus connects to the Central Repository via HTTPS using the URL https://repo1.maven.org/maven2/.

6.2.2. Hosted Repository

A Hosted Repository is a repository that is hosted by Nexus. Nexus ships with the following configured hosted repositories:

3rd Party

This hosted repository should be used for third-party dependencies not available in the public Maven repositories. Examples of these dependencies could be commercial, proprietary libraries such as an Oracle JDBC driver that may be referenced by your organization.

Releases

This hosted repository is where your organization will publish internal releases.

Snapshots

This hosted repository is where your organization will publish internal snapshots.

like image 118
durron597 Avatar answered Oct 21 '22 00:10

durron597