Change Maven dependency exclusion

Apache 2.0

Modify Maven dependency exclusions, changing the group ID, artifact Id, or both. Useful when an excluded dependency has been renamed and references to it must be updated.

org.openrewrite.maven.ChangeExclusion

Required

The old groupId to replace. Supports glob expressions.

The old artifactId to replace. Supports glob expressions.

Optional

The new groupId to use. Defaults to the existing group id.

The new artifactId to use. Defaults to the existing artifact id.

mod run . --recipe=org.openrewrite.maven.ChangeExclusion \ -P oldGroupId=org.springframework \ -P oldArtifactId='spring-web*'

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