Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 705
Aleksey Timohin Avatar asked May 13 '13 14:05

Aleksey Timohin


People also ask

Is Nexus an artifact repository?

Manage your software componentsNexus Repository OSS is an open source repository that supports many artifact formats, including Docker, Java™, and npm.

What is sonatype Nexus used for?

Nexus by Sonatype is a repository manager that organizes, stores and distributes artifacts needed for development. With Nexus, developers can completely control access to, and deployment of, every artifact in an organization from a single location, making it easier to distribute software.


1 Answers

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.

like image 117
wargre Avatar answered Oct 01 '22 03:10

wargre