Change Maven plugin group and artifact ID

Apache 2.0

Change the groupId and/or the artifactId of a specified Maven plugin. Optionally update the plugin version, which may be given as an exact version or as a node-style semver selector resolved against the new plugin's available versions.

org.openrewrite.maven.ChangePluginGroupIdAndArtifactId

Required

The old group ID to replace. The group ID is the first part of a plugin coordinate 'com.google.guava:guava:VERSION'. Supports glob expressions.

The old artifactId to replace. The artifact ID is the second part of a plugin coordinate 'com.google.guava:guava:VERSION'. Supports glob expressions.

Optional

The new group ID to use.

The new artifact ID to use.

An exact version number or node-style semver selector used to select the version number. You can also use latest.release for the latest available version and latest.patch if the current version is a valid semantic version. For more details, you can look at the documentation page of version selectors

mod run . --recipe=org.openrewrite.maven.ChangePluginGroupIdAndArtifactId \ -P oldGroupId=org.openrewrite.recipe \ -P oldArtifactId=my-deprecated-maven-plugin

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