Hello Hammar,

I do have a repository manager but I needed this to test a new deployment 
artefact framework I'm working on; So far using a global property did it for me 
(I got access to my emails just this morning and I see you suggested the same), 
and is simple enough to maintain.

Thanks for your help!

--Jose

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Anders Hammar
Sent: Wednesday, March 28, 2012 7:04 AM
To: Maven Users List
Subject: Re: substitute a repository with another one in pom.xml?

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 <[email protected]> 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, <[email protected]> / http://meadiciona.com/aldrinleal
>
>
> On Tue, Mar 27, 2012 at 11:17 AM, ryenus blatt <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Barclays is one of the world's leading banks, and we believe that by continuing 
to integrate the organisation we can better deliver the full power of Barclays 
to customers, clients and the communities in which we work. As a visible sign 
of that integration we are moving to a single Barclays brand for the majority 
of our divisions, including those formerly known as Barclays Capital, Barclays 
Wealth and Barclays Corporate.

_______________________________________________

This e-mail may contain information that is confidential, privileged or 
otherwise protected from 
disclosure. If you are not an intended recipient of this e-mail, do not 
duplicate or redistribute 
it by any means. Please delete it and any attachments and notify the sender 
that you have received 
it in error. Unless specifically indicated, this e-mail is not an offer to buy 
or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or 
service, an official confirmation of any transaction, or an official statement 
of Barclays. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those 
of Barclays. This e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. 
By messaging with Barclays you consent to the foregoing.  Barclays offers 
premier investment banking 
products and services to its clients through Barclays Bank PLC, a company 
registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP.  This email may 
relate to or be sent from other members of the Barclays Group.

_______________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to