Hi Torsten,

The <mirrors> cannot be configured with profiles. What you could do instead
is set each repository in different profiles using the <repository> section,
and just activate which profile you want to use for a specific build.

This might help too:
http://maven.apache.org/archiva/docs/1.0.1/userguide/using-repository.html

Thanks,
Deng

On Fri, Mar 28, 2008 at 6:00 PM, <[EMAIL PROTECTED]> wrote:

> Hi,
>
> actually we have a file-based Repository, so for that I have the following
> <mirror> section in my settings.xml:
>
>    <mirror>
>      <id>GDCAMS-2.5-Main - mirror of central repo1.maven.org/maven2</id>
>      <name>GD proxy for central repository</name>
>      <url>file:/V:/3L_Solutions/08. Entwicklungsprojekte/PDV
> CMS/40_Builds/Repositories/GDCAMS-2.5-Main</url>
>      <mirrorOf>central</mirrorOf>
>    </mirror>
>
> Now, I want to use Archiva as Repository, so I need to modify the
> settings.xml to:
>
>    <mirror>
>      <id>archiva.default</id>
>      <name>Archiva Internal Repository</name>
>      <url>http://myserver:8080/archiva/repository/internal</url>
>      <mirrorOf>central</mirrorOf>
>    </mirror>
>
> How can I support both environments?
> I need to support both, because for older branches I won't change the
> build environment, but for the newest ( Main\Latest) I will use Archiva.
>
> I know about the -s option - is there a profile based solution, too?
>
> Thanx, Torsten
>

Reply via email to