gpt4 book ai didi

java - 代理存储库 VS 托管存储库

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:17:12 24 4
gpt4 key购买 nike

根据 Nexus 书籍,托管存储库是“由 Nexus 托管的存储库”。并且第 3 方存储库(托管存储库)应该用于公共(public) Maven 存储库中不可用的第三方依赖项。

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

最佳答案

我不确定您在 Nexus Book 中没有找到什么.简而言之,代理存储库是您镜像的存储库,而托管存储库是您通过 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 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.

关于java - 代理存储库 VS 托管存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31901423/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com