Add Maven project property
Apache 2.0Add a new property to the Maven project property. Prefers to add the property to the parent if the project has multiple modules.
org. openrewrite. maven. AddPropertyRequired
The name of the property key to be added.
The value of property to be added.
Optional
preserveExistingValueBoolean
Preserve previous value if the property already exists in the pom file.
trustParentBoolean
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. AddProperty \
-P key= junit. version \
-P value=4.13Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.