You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by to...@gi-de.com on 2008/03/28 11:00:17 UTC
switch by profile? How to switch between (Archiva) environments?
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
RE: switch by profile? How to switch between (Archiva) environments?
Posted by ni...@planet.nl.
What I've done on my laptop:
I created multiple settings.xml (settings.xml.home, settings.xml.work, etc) and with a script I make a symlink to the right settings.xml.x to settings.xml. Just run the command once and I am set for that environment.
Hth,
Nick S.
-----Original Message-----
From: oching@exist.com on behalf of Maria Odea Ching
Sent: Fri 3/28/2008 11:54
To: Maven Users List
Subject: Re: switch <mirror> by profile? How to switch between (Archiva) environments?
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, <to...@gi-de.com> 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
>
Re: switch by profile? How to switch between (Archiva) environments?
Posted by Maria Odea Ching <oc...@apache.org>.
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, <to...@gi-de.com> 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
>