Remove Maven managed dependency
Apache 2.0Removes a single managed dependency from the <dependencyManagement><dependencies> section of the pom.xml.
org. openrewrite. maven. RemoveManagedDependencyRequired
The first part of a managed dependency coordinate com.google.guava:guava:VERSION.
The second part of a managed dependency coordinate com.google.guava:guava:VERSION.
Optional
Only remove managed dependencies if they are in this scope. If runtime, this will also remove managed dependencies in the 'compile' scope because compile dependencies are part of the runtime dependency set.
mod run . --recipe= org. openrewrite. maven. RemoveManagedDependency \
-P groupId= com. google. guava \
-P artifactId= guavaInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.