-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Actually, if you want to remove the default central repository from the
equation, you could always setup a mirror configuration for the
repository with id == 'central'. This will route resolution attempts
from m2 to your in-house repository instead of ibiblio.
You can configure your settings.xml (~/.m2/settings.xml or
${maven.home}/conf/settings.xml for global settings) like this:
<settings>
~ <mirrors>
~ <mirror>
~ <id>mymirror</id>
~ <name>In-House Mirror of ibiblio.org</name>
~ <url>http://my.mirror.host/path/to/maven2/repository</url>
~ <mirrorOf>central</mirrorOf>
~ </mirror>
~ </mirrors>
</settings>
NOTE: You may also have to setup a repository mirror for
'central-plugins' which points to http://repo1.maven.org/maven2/plugins
by default.
HTH,
john
Allison, Bob wrote:
| How do I do that in Maven 2? Where in pom.xml do I put this?
|
| -----Original Message-----
| From: dan tran [mailto:[EMAIL PROTECTED]
| Sent: Thursday, August 18, 2005 12:02
| To: Maven Developers List
| Subject: Re: [m2] Repository Search Order
|
|
| override maven.repo.remote?
|
| -D
|
| On 8/18/05, Allison, Bob <[EMAIL PROTECTED]> wrote:
|
|>Is there a method to alter the order in which repositories are
|
| searched?
|
|>In our existing m102 build environment, we have a copy of what we use
|>from the maven repository in a repository near our development boxes.
|>We did this because we would run into cases where the maven central
|>repository would hiccup and a build run would sit for two minutes
|>waiting to search the central repository for a snapshot of one of our
|>build artifacts; by making a copy of what we use and removing the
|
| maven
|
|>repository from the search list, we don't have these delays since all
|>searches are to local servers.
|>
|>I have no real problem with getting the released maven objects from
|
| the
|
|>central repository. After all, once the user gets their build
|>environment ready there should be no reason to download them again.
|>What I would like to do is search the repositories defined in the POMs
|>before searching the central repository. This way, updating the
|>snapshots of our build artifacts doesn't involve a number of checks at
|>ibiblio for files that will never be there.
|>
|>---------------------------------------------------------------------
|>To unsubscribe, e-mail: [EMAIL PROTECTED]
|>For additional commands, e-mail: [EMAIL PROTECTED]
|>
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFDBNIyK3h2CZwO/4URAnwuAJwPsu9XDsxOqremmwpFsyJFW6/v9ACZAaWs
mn7sv7sod9HWF1yz0GQwE4M=
=fwHt
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]