Change Maven project property value

Apache 2.0

Changes the specified Maven project property value leaving the key intact.

org.openrewrite.maven.ChangePropertyValue

Required

The name of the property key whose value is to be changed.

Value to apply to the matching property.

Optional

addIfMissingBoolean

Add the property if it is missing from the pom file.

trustParentBoolean

Even if the parent defines a property with the same key, trust it even if the value isn't the same. Useful when you want to wait for the parent to have its value changed first. The parent is not trusted by default.

mod run . --recipe=org.openrewrite.maven.ChangePropertyValue \ -P key=junit.version \ -P newValue=4.13

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.