Anders! You are right I am just experimenting with 2 dummy profiles, if you 
look at both of the profiles except for id and surefire report directory 
everything else are same, is there mandatory requirement for maven to uniquely 
identify a profile or else it will silently ignore the profile?, my setting.xml 
does not have any profile information, it just has few mirror settings. I know 
I am doing something wrong because it is working for others...
Till now trying in vain, behavior is same

Thnkx
sridharl

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Anders Hammar
Sent: Friday, August 27, 2010 7:22 PM
To: Maven Users List
Subject: Re: RE: Multiple profile execution in maven

Both profiles har active according att help:active-profiles. The problem is
elsewhere. Most likely inte the expected outcome.

/Anders (mobile)

Den 2010 8 27 15:27 skrev "Gorham-Engard, Frank" <
[email protected]>:
> I have read that any activation of any profile on the command line will
disable all profiles that are active by default. Is that still the way Maven
works?
>
> If it is, perhaps, the first profile 'x' in -Px,y was active by default so
the command line setting was ignored and then the second profile 'y' was
activated, disabling the first profile.
>
> What do you guys think? Could that be it? Perhaps if the order were
reversed it would work as desired.
>
> <!-- Frank Gorham-Engard →
> "Be kinder than necessary.
>   Everyone is fighting some kind of battle."
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
Behalf Of Anders Hammar
> Sent: Thursday, August 26, 2010 9:10 AM
> To: Maven Users List
> Subject: Re: Multiple profile execution in maven
>
> I checked the docs at maven.apache.org and they say comma list. But as
> always, there might be bugs...:-)
>
> /Anders
>
> On Thu, Aug 26, 2010 at 14:42, Stephen Connolly <
> [email protected]> wrote:
>
>> I think you use multiple -P's to activate them
>>
>> -Px -Py
>>
>> but that could all just be my imagination ;-)
>>
>> On 26 August 2010 12:33, Anders Hammar <[email protected]> wrote:
>>
>> > It should work. However, I'm not sure if I have ever enabled more than
>> one
>> > profile from command line.
>> > Just for the heck of it, could you try adding a space between -P and
the
>> > profiles list ("-P x,y")?
>> >
>> > /Anders
>> >
>> > On Thu, Aug 26, 2010 at 13:16, Sridhar Laxmipuram Srinivasan <
>> > [email protected]> wrote:
>> >
>> > > Hi,
>> > > I have 2 profiles which are deactivated by default but at run time I
>> need
>> > > to execute both of them, I have tried with -P<x>,<y> but of no use it
>> > always
>> > > executes the latter, Could you kindly provide me a solution to this.
I
>> am
>> > > using maven 2.2.1 version
>> > >
>> > > thnkx
>> > > sridharl
>> > >
>> > >
>> >
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to