We have developers working in different geographic locations and we want to set up Archiva for each of those geographic locations (just to make sure that the round trip in getting the artifacts is less).
Is it possible that whenever an artifact is uploaded/deleted from Archiva at location G1 then the same change gets pushed to Archiva managed repository at location G2, G3 and so on?
This isn’t exactly what you asked for, but the net effect is the same to the users of the system so it is worth looking into.
You can set Archiva up to proxy remote repositories by using proxy connectors.
Using this mechanism you could configure G2 to have a proxy of G1, this means when any artifact is deployed to G1, it would be available at G2 via the proxy mechanism.
From the documentation:
If proxy connectors won’t work for you, you could look into alternative replication approaches. I would reconsider though as any homegrown solution is likely to introduce issues as users modify the repository contents.