maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matej Lazar <matejon...@gmail.com>
Subject Re: Setting user property via cmd using group-id & artifact-id
Date Tue, 17 Dec 2013 09:17:47 GMT

Working on productization we want to avoid code (also pom) changing,
but often we have to change some plugin property (tesets, source packing, ...)
being able to change it via external property would be useful.

Should I file a feature request? Under which component?

Thanks,
Matej.


On 12/16/2013 09:54 PM, Stephen Connolly wrote:
> not without changing the pom.
>
> You could set each module to have its own configuration for the skip
> property, e.g.
>
> <properties>
>   <maven.test.skip>${foobar.test.skip}</maven.test.skip>
>   <foobar.test.skip>false</foobar.test.skip>
> </properties>
>
> the above in module foobar, in module barfoo you'd have
>
> <properties>
>   <maven.test.skip>${barfoo.test.skip}</maven.test.skip>
>   <barfoo.test.skip>false</barfoo.test.skip>
> </properties>
>
> And then you can get what you think you want...
>
> Spread this over 10 modules and you'll quickly realise that this is not the
> solution you want
>
>
> On 16 December 2013 20:30, Anders Hammar <anders@hammar.net> wrote:
>
>> No.
>>
>> /Anders (mobile)
>> Den 16 dec 2013 18:38 skrev "Matej Lazar" <matejonnet@gmail.com>:
>>
>>> Hi,
>>>
>>> Is there a way to set user property via command line for a specific
>> module.
>>> I would like to use something like:
>>> mvn clean instrall -Dgroup-id.artifact-id.maven.test.skip=true
>>>
>>>
>>> Thanks,
>>> Matej.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>


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


Mime
View raw message