views:

133

answers:

2

Our company would like to mirror our Maven 2 Repository inside of the Amazon network.

What software should one use to do this?

We have looked into a Wagon-S3 but that sort of functionality is not desirable... we want the artifacts to already be present when we are ready for a build.

+1  A: 

You could use Nexus. It works very well in our case (it is used by about 500 developers).

koppernickus
Yes, that was my inclination, as Nexus can "Proxy the Nexus Indexer from repositories that publish their own index, and publish the index on proxy repositories that don’t" and then cache any proxied requests, but that still is just-in-time retrieval. When I say mirror I mean more like a mirrored database where the data in a mirror is already there.
Randy
You just have to 'warm it up'.
bmargulies
Just to understand your situation better - why you would like to have such "perfect" mirror? Why it is not enough for you to cache only used artifacts? Why this first-time download is the issue?
koppernickus
My case is such that I have a lot of different builds occuring with different versions of many many jars. When we need a new build with new (non-cached) software we generally need it quickly in the amazon network, and a preemptive load would be nice, not on-demand. Nexus works well enough at a price I can't argue with, thank you.
Randy
A: 

Mirroring a repository could be done using rsync and it looks like there is a version for S3. Have a look at s3rsync.

Pascal Thivent
Possibly, but I am still looking for something which functions just like a mirrored database but for a maven repositories, and not a file-synch or caching proxy. Edit: However this may be the closest thing to what I need, since it is a generalized version of a mirror.
Randy
@Randy A maven repository is nothing more than files in a file system so mirroring a repository means mirroring files. I'm not sure to understand what you're looking for exactly.
Pascal Thivent