Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 将工件从sonatype nexus迁移到新的sonatype nexus_Maven_Nexus_Sonatype - Fatal编程技术网

Maven 将工件从sonatype nexus迁移到新的sonatype nexus

Maven 将工件从sonatype nexus迁移到新的sonatype nexus,maven,nexus,sonatype,Maven,Nexus,Sonatype,我对maven和工件的迁移是完全陌生的 Nexus Repo A: projrelases proxy(type) projsnapshots proxy(type) Nexus Repo B: projrelases hosted(type) projsnapshots hosted(type) 这些maven回购需要迁移到新的nexus回购(nexus回购C) 请提供帮助。您可以在目标服务器上从sonatype work/nexus/storage创建每次回购后,将

我对maven和工件的迁移是完全陌生的

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

Nexus Repo B:
  projrelases hosted(type)
   projsnapshots hosted(type)
这些maven回购需要迁移到新的nexus回购(nexus回购C)


请提供帮助。

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

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


查看Nexus手册中的以及更多提示。

我尝试将我的商店复制到新商店,然后将其同步(请参阅)。尚未复制所有工件

我最终创建了自己的脚本(请参见)。其思想是循环存储中的所有属性文件。这些属性包含存储库的名称和关联的文件名。它只是下载它(使用CURL),然后上传它(也使用CURL)。所有工件都已复制(且速度更快)