maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: substitute a repository with another one in pom.xml?
Date Wed, 28 Mar 2012 11:04:28 GMT
I suggest installing a repository manager. Nexus for example has this
mirror feature which is would then use if the original repo is down. A
good Maven-based development infrastructure utilizes a repo manager
instead of working directly towards remote repositories.

/Anders
On Wed, Mar 28, 2012 at 01:25, Aldrin Leal <aldrin@leal.eng.br> wrote:
> You can create a mirror. If you supply the right id, it will simply work.
>
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> --
> -- Aldrin Leal, <aldrin@leal.eng.br> / http://meadiciona.com/aldrinleal
>
>
> On Tue, Mar 27, 2012 at 11:17 AM, ryenus blatt <ryenus@gmail.com> wrote:
>
>> hello,
>>
>> in pom.xml, is it possible to setup a substitution rule to replace a
>> repository with another one?
>> e.g.:
>>
>> <repository>
>>  <id>xxx</id>
>>  <url>http://yyy.org/</url>
>>  <subsitute>http://zzz.org/</substitute>
>> </repository>
>>
>> the reason is, in case the repository zzz.org is down, with the
>> substitution rule set, maven can immediately turn to yyy.org, instead of
>> try zzz.org and wait and fail then turn to yyy.org, the latter, which is
>> the current situation, would waste a lot of time if their are too many
>> (e.g. 100+) artifacts supposed to be fetched from zzz.org.
>>
>> my case? maven.glassfish.org is down and it took me more than 30 mins to
>> run mvn eclipse:eclipse, the project is
>> https://github.com/ikeike443/HudsonPluginForPlay
>>

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


Mime
View raw message