Nexus supports Mass upload of artifacts?

陌路散爱 提交于 2019-12-03 04:55:49

问题


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


回答1:


You can do it in a variety of ways:

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



回答2:


Use the Nexus Repository Conversion Tool to create Release and Snapshot folders based on your local .m2 folder and then move the contents of those folders into [sonatype-work]/storage/[repository-name].



来源:https://stackoverflow.com/questions/1410580/nexus-supports-mass-upload-of-artifacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!