archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <wsm...@gmail.com>
Subject Re: Archiva & Snapshots
Date Wed, 11 Feb 2009 02:10:12 GMT
I'd advise putting the mirror with mirrorOf * back in, to prevent any
access to external repos.  In addition to that, put another mirror for
your snapshots repo.  The * is a catch-all.  If another mirror
matches, that will be used instead.

Another way to reduce configuration is to create a repository group (I
usually call mine 'all') and add all your repos to it.  Then you can
use that single (virtual) repository as a mirror for everything.

[1] http://maven.apache.org/guides/mini/guide-mirror-settings.html

-- 
Wendy

On Mon, Feb 9, 2009 at 1:32 AM, DEGARDIN David (CAMPUS)
<david.degardin@oxylane-group.com> wrote:
> Hi Wendy,
>
> Thank you very much for your help on this.
> With your help, I managed to do it: I had to declare a profile with 2
> repositories: the one with releases and the one with snapshots (this
> profile is always activated for all builds).
>
> But I had to remove the mirror part (before, in my settings.xml file, I
> had archiva as a mirror of *). If I leave the mirror part, the snapshot
> is not found (maven is trying to retrieve it from the "internal"
> repository which is the one that is defined in mirror part).
>
> David

Mime
View raw message