Remove Maven plugin goal

Apache 2.0

Removes a goal from a Maven plugin wherever it is declared: directly under a <plugin>, inside <executions>, and within <build>, <pluginManagement>, or <profiles>. If removing the goal leaves an <execution> with no remaining goals, the execution is removed. If all executions are removed, the <executions> element is also removed.

org.openrewrite.maven.RemovePluginGoal

Required

Group ID of the plugin from which the goal will be removed. Supports glob. A Group ID is the first part of a plugin coordinate 'org.apache.maven.plugins:maven-compiler-plugin:VERSION'.

Artifact ID of the plugin from which the goal will be removed. Supports glob. The second part of a plugin coordinate 'org.apache.maven.plugins:maven-compiler-plugin:VERSION'.

The goal to remove. Matching is case-insensitive and supports glob.

mod run . --recipe=org.openrewrite.maven.RemovePluginGoal \ -P pluginGroupId=org.apache.maven.plugins \ -P pluginArtifactId=maven-compiler-plugin \ -P goal=compile

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