maven update pom property
maven, plugins
Solution
`mvn versions:update-properties -Dproperties=[XYZ] -DincludeProperties={abc.def}`
Read more here. and here.
In short:
In versions-maven-plugin, the `update-properties` goal sets properties to the latest versions of specific artifacts.
`includeProperties` is a comma separated list of properties to update.
`properties` are any restrictions that apply to specific properties.
Problem
I'm looking for a way to update pom property to given value, i.e. my pom.xml contains: ``` <properties> <abc.def>aaaaa</abc.def> <properties> ``` now i want to call : ``` mvn some_plugin:some_goal -Dabc.def=XYZ ``` and finally my pom.xml should looks like ``` <properties> <abc.def>XYZ</abc.def> <properties> ``` I was reading about maven-release-plugin & versions-maven-plugin but i do not see there any matching goal. Thank you in advance for any reply.