Hm alright, are there really no way that I can, based on my active profile, 
specify what properties to use or not use from my settings.xml? I mean, I have 
different filters to filter in the correct values here and there based on my 
active profile, but a few values are specific pr. Developer and are therefore 
in each developers settings.xml, but when I make a build for a testserver or 
other server then I want to overwrite the values defined in settings.xml.

Please help :)

Med venlig hilsen / Kind regards 


Søren Krogh Neigaard
Systems Engineer

Søren Frichs Vej 39, 8000 Aarhus C
Denmark 

Mobile +4541965252
soeren.krogh.neiga...@systematic.com
www.systematic.com


-----Original Message-----
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: 2. juli 2010 10:52
To: Maven Users List
Subject: Re: Activating a profile in settings.xml based on a property set in 
pom.xml?

profile activation is based on _SYSTEM_ properties.

you cannot activate profiles based on properties defined in your pom

you cannot activate profiles based on system properties defined after the
build plan has started execution

-Stephen

On 2 July 2010 08:37, Søren Krogh Neigaard <
soeren.krogh.neiga...@systematic.com> wrote:

> Hi
>
> I would like to activate (or not) a profile in my settings.xml base don
> which profile is active in my pom.xml. The active profile is determined by
> either activated by default, or by setting a -P argument to maven. How can I
> do this?
>
> In my pom.xml I also set a <env>production</env> in my production profile
> and so on, can I use this to activate profiles in settings.xml, or how do I
> do this?
>
> Med venlig hilsen / Kind regards
>
>
> Søren Krogh Neigaard
> Systems Engineer
>
> Søren Frichs Vej 39, 8000 Aarhus C
> Denmark
>
> Mobile +4541965252
> soeren.krogh.neiga...@systematic.com
> www.systematic.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to