Re: Re: How to up date a property in a POM to a specific value

2017-08-28 Thread Anders Hammar
mailinglist. > > > Gesendet: Samstag, 26. August 2017 um 19:26 Uhr > > Von: "John Patrick" > > An: "Maven Users List" > > Betreff: Re: How to up date a property in a POM to a specific value > > > > If your talking about the codehaus versio

Aw: Re: How to up date a property in a POM to a specific value

2017-08-28 Thread sparsick
Thank you for the hint. I will repeat my question on the Mojohaus mailinglist. > Gesendet: Samstag, 26. August 2017 um 19:26 Uhr > Von: "John Patrick" > An: "Maven Users List" > Betreff: Re: How to up date a property in a POM to a specific value > > If y

Re: How to up date a property in a POM to a specific value

2017-08-26 Thread John Patrick
If your talking about the codehaus version plugin which is now hosted at mojohaus, it's a different mailing list i think... http://www.mojohaus.org/versions-maven-plugin/mail-lists.html On 23 August 2017 at 21:07, Sandra Parsick wrote: > Thanks for your answers. > > Passing the property value

Re: How to up date a property in a POM to a specific value

2017-08-23 Thread Sandra Parsick
Thanks for your answers. Passing the property value from command line don't meet my condition, because the new value has to be stored in the POM. I found out that a new mojo called "set-property" was implemented in the current master branch of versions maven plugin. This mojo would meet my use ca

Re: How to up date a property in a POM to a specific value

2017-08-22 Thread Anders Hammar
Specifying property values from command line when doing a release could be bad practice, as the pom deployed would not contain the value from command line. It all depends on what the property is used for. /Anders On Tue, Aug 22, 2017 at 10:34 AM, John Patrick wrote: > I think I do similar and I

Re: How to up date a property in a POM to a specific value

2017-08-22 Thread John Patrick
I think I do similar and I simply use -DpropertyName=newValueForProperty on the command line when executing the maven command, or via a profile and then activate the required profile. Just checking the property is already defined in a pom e.g. ..oldValueForProperty At build time I would simpl