> One more question, system property always overwrites property?

No, never. System properties and POM properties are kept separate by
Maven. HOWEVER, system properties are (should) be the preferred value
when interpolating. But there has been some bugs in this area. Latest
Maven 3 and latest plugins should work well though.

/Anders

>
> br
> L.
>>
>> /Anders
>>
>> On Tue, Jun 19, 2012 at 2:03 PM, Łukasz Tasz <[email protected]> wrote:
>>> Hi All,
>>>
>>> I'm not mvn expert, but I'm working a lot others build systems.
>>> I'm missing one of fundamental functionality, default value for
>>> variable / property in case of maven.
>>>
>>> I would like to start mvn process and optionally parametrize it by
>>> environment variable.
>>>
>>> e.g
>>> <properties>
>>>    <myProp>${env.turboMode}:slowmode</myProp>
>>> </properties>
>>>
>>> so if environmente variable is seted then myProp will get it;s value,
>>> if not then slowmode will be the value.
>>>
>>> I' sure that I'm missing some manual page, but please don't blame :)
>>>
>>> Thanks a lot
>>>
>>> --
>>> Łukasz Tasz
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
>
> --
> --
> Łukasz Tasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

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

Reply via email to