With Maven 3 you currently can't. The rational is that Maven tries to
ensure that you're using the right artifact. So if the cached artifact is
from a different repo than the one you're using now, it will re-download it.

/Anders


On Wed, Feb 27, 2013 at 9:00 AM, Gilles Scokart <gscok...@gmail.com> 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to