Change Maven Project Version

Apache 2.0

Change the project version of a Maven pom.xml. Identifies the project to be changed by its groupId and artifactId. If the version is defined as a property, this recipe will only change the property value if the property exists within the same pom.

org.openrewrite.maven.ChangeProjectVersion

Required

The group ID of the maven project to change its version. This can be a glob expression.

The artifact ID of the maven project to change its version. This can be a glob expression.

The new version to replace the maven project version.

Optional

overrideParentVersionBoolean

This flag can be set to explicitly override the inherited parent version. Default false.

mod run . --recipe=org.openrewrite.maven.ChangeProjectVersion \ -P groupId=org.openrewrite \ -P artifactId='*' \ -P newVersion=8.4.2

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