If you try switching the parameter and profile the other way around,
does that then work?

-Dbletch=false -Pa

On 29 October 2012 21:52, Benson Margulies <bimargul...@gmail.com> wrote:
> On Mon, Oct 29, 2012 at 4:26 PM, Anders Hammar <and...@hammar.net> wrote:
>>> With two profiles that disagreed, the order of the profiles names
>>> after -Pa,b (or b,a) did not matter.
>>
>> Correct. The declared order in the pom or settings.xml is the one that 
>> counts.
>>
>>> -Pa -Dbletch=false
>>>
>>> respected the 'true' in a, not the false from the command line.
>>
>> I think this surprises me. Did you verify with Maven 2?
>
> No, all my projects now require M3. I guess I need to build a test
> case and JIRA.
>
>>
>> /Anders
>>
>>>
>>>
>>> On Mon, Oct 29, 2012 at 12:47 PM, John Patrick <nhoj.patr...@gmail.com> 
>>> wrote:
>>>> How are the profiles being activated? Command line -P or via
>>>> activations, or a mix?
>>>>
>>>> About 6 months ago I had issues using -P and -D and fix it by getting
>>>> all -D options we might need to use into profiles and then just
>>>> remembering specific orders of profiles.
>>>>
>>>> John
>>>>
>>>> On 29 October 2012 16:33, Anders Hammar <and...@hammar.net> wrote:
>>>>> Yes (I think). Did you test with both Maven 3 and 2?
>>>>>
>>>>> /Anders
>>>>>
>>>>> On Mon, Oct 29, 2012 at 4:22 PM, Benson Margulies <bimargul...@gmail.com> 
>>>>> wrote:
>>>>>> If a profile has a property value set, -D from the command-line does
>>>>>> not win, the profile wins. Does this surprise anyone else?
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>

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

Reply via email to