【问题标题】:Migration of artifacts from sonatype nexus to new sonatype nexus人工制品从 sonatype nexus 迁移到新的 sonatype nexus
【发布时间】:2015-02-14 23:02:07
【问题描述】:

我对 Maven 和工件迁移也完全陌生。我的环境有两个 nexus repo。

Nexus Repo A:
   projrelases proxy(type)
   projsnapshots proxy(type)

Nexus Repo B:
  projrelases hosted(type)
   projsnapshots hosted(type)

这些 maven repos 需要迁移到新的 nexus repo(Nexus Repo C)。

请帮忙。

【问题讨论】:

    标签: maven nexus sonatype


    【解决方案1】:

    我尝试将我的商店复制到新商店,然后进行同步(请参阅https://github.com/samrocketman/nexus3-config-as-code)。尚未复制所有工件。

    我最终创建了自己的脚本(请参阅https://gist.github.com/sebge2emasphere/497cb264b32ac39a80864c864d522906)。这个想法是遍历存储中的所有属性文件。这些属性包含存储库的名称和关联的文件名。它只是下载它(使用 CURL)然后上传它(也使用 CURL)。所有工件都已复制(而且速度更快)。

    【讨论】:

      【解决方案2】:

      您可以在目标服务器上从 sonatype-work/nexus/storage 创建每个 repo 后复制其内容,也可以在配置后使用 rsync 到新服务器。

      将每个存储库迁移到新目标服务器上自己的存储库中,然后使用存储库组将它们合并并公开给用户。

      查看 Nexus 图书中的 migration info 以及 our support page for failover 了解更多提示。

      【讨论】:

        猜你喜欢
        • 2017-07-04
        • 1970-01-01
        • 2023-03-29
        • 1970-01-01
        • 2014-05-20
        • 1970-01-01
        • 1970-01-01
        • 2022-01-01
        • 2017-03-14
        相关资源
        最近更新 更多