Sonatype Nexus: How to use Amazon S3 as a storage for maven artifacts?

狂风中的少年 提交于 2020-01-02 00:55:23

问题


I've got a task to examine how to make our internal Nexus installation (installed on CentOs/RHEL) to store artifacts in Amazon S3 cloud storage (or any other cheap cloud storage).

So far, I had found only one solution - mount s3 as a file system, f.e. using s3fs. But I've met few problems using s3fs (beyond the scope of this topic).

Maybe someone already succeeded in the search of the solution for similar task, and could share the knowledge? Or maybe anyone had better ideas?

Thanks in advance.


回答1:


Edit: Since version 3.12, S3 blobstore is included in nexus.

Sonatype has an open source plugin that does that:

https://github.com/sonatype/nexus-blobstore-s3

you compile it, put it on the nexus deploy directory, setup your S3 account and you're good to test it.




回答2:


Nexus Sonatype does not support the use of S3 as it's filesystem store.

Why not use Nexus to manage your master repository and use a tool like s3sync to mirror the repository file contents into S3? Would be a useful way to provide versioned releases to customers.




回答3:


Since version 3.12, Nexus natively supports S3 blob store: https://blog.sonatype.com/nexus-repository-3.12-support-for-s3-blob-stores



来源:https://stackoverflow.com/questions/16524800/sonatype-nexus-how-to-use-amazon-s3-as-a-storage-for-maven-artifacts

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