Change Maven dependency exclusion
Apache 2.0Modify 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. ChangeExclusionRequired
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.