You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephane Nicoll <st...@gmail.com> on 2008/04/04 13:24:46 UTC
how to configure a mirror?
Hi,
I am trying to configure a mirror. We have development teams around
the world so I would like to be able to configure the central mirror
with a property that would be define in a profile for instance
(developers may travel around so they need to use the closest mirror).
We can't set a mirror in a profile.
I tried to do something like
<mirrors>
<mirror>
<id>internal</id>
<name>Releases - Liege repository</name>
<url>${internal.url}</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
And define internal.url in a profile that is in the activeProfiles
section of the settings but it did not replaced the value.
Any solution to this problem?
Thanks,
Stéphane
--
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: how to configure a mirror?
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
You might try to avoid the mirror all together. Instead of mirroring central, change the url in a profile to be what you want it to be. There's no good way to change the mirror url if the property didn't work.
-----Original Message-----
From: Stephane Nicoll [mailto:stephane.nicoll@gmail.com]
Sent: Friday, April 04, 2008 7:25 AM
To: Maven Users List
Subject: how to configure a mirror?
Hi,
I am trying to configure a mirror. We have development teams around
the world so I would like to be able to configure the central mirror
with a property that would be define in a profile for instance
(developers may travel around so they need to use the closest mirror).
We can't set a mirror in a profile.
I tried to do something like
<mirrors>
<mirror>
<id>internal</id>
<name>Releases - Liege repository</name>
<url>${internal.url}</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
And define internal.url in a profile that is in the activeProfiles
section of the settings but it did not replaced the value.
Any solution to this problem?
Thanks,
Stéphane
--
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck" -- S.Yegge
---------------------------------------------------------------------
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