本文介绍了Nexus支持大量上传工件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我们是否可以将工件大量上传到Nexus的存储库中.

I wanted to know if we can have mass upload of artifacts to the repository in Nexus.

推荐答案

您可以通过多种方式进行操作:

You can do it in a variety of ways:

  • 使用Nexus 工件上传页面(仅注意此点)适用于具有相同groupId和artifactId的多个工件.
  • 设置脚本,并多次调用maven-deploy-plugin的部署文件目标,每个工件一个.
  • 如果有权访问文件系统,则可以将文件直接复制到 [sonatype-work]/storage/[repository-name] .如果这样做,请设置预定任务重建元数据并为存储库重新编制索引.
  • Use the Nexus artifact upload page (note this only works for multiple artifacts with the same groupId and artifactId).
  • Set up a script, with multiple invocations of the maven-deploy-plugin's deploy-file goal, one for each artifact.
  • If you have access to the file system, you can copy the files directly into [sonatype-work]/storage/[repository-name]. If you do this, set up scheduled tasks to rebuild the metadata and reindex the repository.

这篇关于Nexus支持大量上传工件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 09:49
查看更多