maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: local repositories and mirrorOf
Date Mon, 25 Jun 2007 14:48:41 GMT
Realistically you should set up a Maven proxy solution (Artifactory,
Proximity, Archiva, etc) and allow it to function as your mirror and
local repository. Otherwise, you will continue to run into these kinds
of problems. This is the suggested approach for corporate
environments.

Wayne

On 6/25/07, Martin Dietze <di@fh-wedel.de> wrote:
> Hi,
>
>  I am in the process of setting up a local repository for our
> project. I would like this repository to be used as the
> preferred location for anything it contains - only if something
> new is not found the other repositories should be used.
>
> Via trial-and-error I have found that even if my repository is
> the only one in my pom.xml maven will still prefer the default
> (?) repository repo1.maven.org to it.
>
> I then added a <mirrors> section to my settings.xml and
> declared my repository as mirror for all (<mirrorOf>*</mirrorOf>).
>
> This is fine for most cases but it shows some quite weird
> behaviour if resources are not found (which happens often as
> for some artifacts there are no javadoc/sources.jar files
> available). In these cases maven will repeatedly query my
> server for the same file. Could it be that this is the result
> of maven trying the same server for every repository it
> mirrors? If this was true it wouldn't be a very optimized way
> of dealing with the problem...
>
> Ideally I would not want to use the mirrorOf method since it
> forces each developer to change his settings.xml each time a
> new artifact is needed which has not been added to the
> repository.
>
> So is there a way of configuring mvn to use my repository by
> default and only use others if my one does not contain the
> required resources?
>
> Cheers,
>
> Martin
>
> --
> ----------- / http://herbert.the-little-red-haired-girl.org / -------------
> =+=
> Last yeer I kudn't spel Engineer.  Now I are won.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message