Hi Gillen,

> How can I configure my settings files so that when I switch the config
> I keep my entire local repository useable, independantly of the place
> from where I downloaded it.

As a workaround, could you copy your work settings.xml to your home
machine, and have a quick "go offline" script that swaps it in or out? The
settings would then only be used to make Maven happy; you would hopefully
never actually need to ping your work servers.

On a related note: I heartily recommend the "mvn dependency:go-offline"
goal, in case you were not already using it, which tries to download
everything you might possibly need for the given project while offline.
Using it will better ensure that "mvn -o" works as desired (though not all
plugins respect "-o" so still not a total guarantee).

Regards,
Curtis


On Wed, Feb 27, 2013 at 2:00 AM, Gilles Scokart <[email protected]> wrote:

> I have a repository at work that is only accessible from our intranet.
>  This
> repository is configured in my personal setting as a repository (for some
> company artefact) and as a mirror for all other repository.
>
> When I'm home, I use an other settings file without this repository and the
> mirror config.  But when I launch a build, it seems that he need to
> redownload all plugin and dependencies.
> I also have difficulties to launch build with option -o because some plugin
> are not found in my local repository altought they are there (but maybe
> donwloaded from the miror).
>
> How can I configure my settings files so that when I switch the config I
> keep my entire local repository useable, independantly of the place from
> where I downloaded it.
>
> -----
> Gilles Scokart
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-play-with-2-repositories-tp5748541.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to