Updating a property in the pom from command line

View: New views
3 Messages — Rating Filter:   Alert me  

Updating a property in the pom from command line

by Julien HENRY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to update a property in the pom from command line. This property is not a version so versions-maven-plugin can't be used.

What I need:

pom contains:

<properties>
    <a.property>toto</a.property>
</properties>


command line:

mvn some-plugin:update-property -Dproperty=a.property -Dvalue=titi


result:

<properties>
    <a.property>titi</a.property>
</properties>


Is there an existing plugin to do that?

Thanks

Julien





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


Re : Updating a property in the pom from command line

by Julien HENRY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have created a custom plugin doing this operation. Most of the code come from versions-maven-plugin.

Would you like a patch that add a new goal to versions maven plugin? Or a new separate plugin?



----- Message d'origine ----

> De : Julien HENRY <henryju@...>
> À : users@...
> Envoyé le : Jeu 5 Novembre 2009, 9 h 48 min 27 s
> Objet : Updating a property in the pom from command line
>
> Hi,
>
> I would like to update a property in the pom from command line. This property is
> not a version so versions-maven-plugin can't be used.
>
> What I need:
>
> pom contains:
>
>
>     toto
>
>
>
> command line:
>
> mvn some-plugin:update-property -Dproperty=a.property -Dvalue=titi
>
>
> result:
>
>
>     titi
>
>
>
> Is there an existing plugin to do that?
>
> Thanks
>
> Julien
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...





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


Re: Re : Updating a property in the pom from command line

by Stephen Connolly-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

file a JIRA with the patch and integration tests

2009/11/5 Julien HENRY <henryju@...>:

> I have created a custom plugin doing this operation. Most of the code come from versions-maven-plugin.
>
> Would you like a patch that add a new goal to versions maven plugin? Or a new separate plugin?
>
>
>
> ----- Message d'origine ----
>> De : Julien HENRY <henryju@...>
>> À : users@...
>> Envoyé le : Jeu 5 Novembre 2009, 9 h 48 min 27 s
>> Objet : Updating a property in the pom from command line
>>
>> Hi,
>>
>> I would like to update a property in the pom from command line. This property is
>> not a version so versions-maven-plugin can't be used.
>>
>> What I need:
>>
>> pom contains:
>>
>>
>>     toto
>>
>>
>>
>> command line:
>>
>> mvn some-plugin:update-property -Dproperty=a.property -Dvalue=titi
>>
>>
>> result:
>>
>>
>>     titi
>>
>>
>>
>> Is there an existing plugin to do that?
>>
>> Thanks
>>
>> Julien
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

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