代理存储库 VS 托管存储库 [英] Proxy repository VS hosted repository

查看:52
本文介绍了代理存储库 VS 托管存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Nexus 书,托管存储库是由 Nexus 托管的存储库".第三方存储库(托管存储库)应用于公共 Maven 存储库中不可用的第三方依赖项.

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.

托管存储库和代理存储库之间有什么区别?例如,JBoss 版本被引用为代理存储库.为什么 JBoss 不发布第 3 方存储库?将其定义为托管存储库或代理存储库真的重要吗?

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?

推荐答案

我不确定您在 Nexus Book.简短的版本是,代理存储库是您镜像的存储库,而托管存储库是您通过 Nexus 软件托管在服务器上的存储库.托管包括出于某种原因未公开的第三方库,请参见下文.

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.

代理存储库 是远程存储库的代理.默认情况下,Nexus 附带以下配置的代理存储库:

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 软件基金会的快照版本.

This repository contains snapshot releases from the Apache Software Foundation.

此存储库包含来自 Codehaus 的快照版本.

This repository contains snapshot releases from Codehaus.

这是包含发布组件的中央存储库.以前称为 Maven Central,它是 Apache Maven 的默认内置存储库,并在其他构建工具(如 Gradle、SBT 或 Ant/Ivy)中直接支持.Nexus 使用 URL https://repo1.maven.org/maven2/.

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/.

托管存储库 是由 Nexus 托管的存储库.Nexus 附带以下配置的托管存储库:

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

此托管存储库应用于公共 Maven 存储库中不可用的第三方依赖项.这些依赖项的示例可能是商业、专有库,例如您的组织可能会引用的 Oracle JDBC 驱动程序.

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.

您的组织将在此托管存储库中发布内部版本.

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

您的组织将在此托管存储库中发布内部快照.

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

这篇关于代理存储库 VS 托管存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆