Add Maven plugin dependencies

Apache 2.0

Adds the specified dependencies to a Maven plugin. Will not add the plugin if it does not already exist in the pom. When the given version resolves, an existing dependency on the same or a newer version is left as is.

org.openrewrite.maven.AddPluginDependency

Required

Group ID of the plugin to which the dependency will be added. A group ID is the first part of a dependency coordinate org.openrewrite.maven:rewrite-maven-plugin:VERSION.

Artifact ID of the plugin to which the dependency will be added.The second part of a dependency coordinate org.openrewrite.maven:rewrite-maven-plugin:VERSION.

The group ID of the dependency to add.

The artifact ID of the dependency to add.

The version of the dependency to add.

mod run . --recipe=org.openrewrite.maven.AddPluginDependency \ -P pluginGroupId=org.openrewrite.maven \ -P pluginArtifactId=rewrite-maven-plugin \ -P groupId=org.openrewrite.recipe \ -P artifactId=org.openrewrite.recipe \ -P version=org.openrewrite.recipe

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