Proxy repository VS hosted repository

后端 未结 3 1373
一个人的身影
一个人的身影 2021-02-20 07:59

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 depende

3条回答
  •  忘掉有多难
    2021-02-20 08:38

    Quoting from the Nexus Book:

    1. Proxy Repository

    • Is a repository with the type proxy, also known as a proxy repository, is a repository that is linked to a remote repository.
    • Any request for a component is verified against the local content of the proxy repository. If no local component is found, the request is forwarded to the remote repository. The component is then retrieved and stored locally in the repository manager, which acts as a cache.
    • Subsequent requests for the same component are then fulfilled from the local storage, therefore eliminating the network bandwidth and time overhead of retrieving the component from the remote repository again.

    • By default, the repository manager ships with the following configured proxy repositories:

      a). maven-central - Proxy repository accesses the Central Repository, formerly known as Maven Central.

      b). nuget.org-proxy - This proxy repository accesses the NuGet Gallery. It is the default component repository used by the nuget package management tool used for .Net development.


    2. Hosted Repository

    • A repository with the type hosted, also known as a hosted repository, is a repository that stores components in the repository manager as the authoritative location for these components.

    • By default, the repository manager ships with the following configured hosted repositories:

      a). maven-releases - This hosted repository uses the maven2 repository format with a release version policy. It is intended to be the repository where your organization publishes internal releases. You can also use this repository for third-party components that are not available in external repositories and can therefore not be retrieved via a configured proxy repository.

      b). maven-snapshots - Uses the maven2 repository format with a snapshot version policy. It is intended to be the the repository where your organization publishes internal development versions, also known as snapshots.

      c). nuget-hosted - It is intended to be the the repository where your organization can publish internal releases in repository using the NuGet repository format.

提交回复
热议问题