Add a comment to a Maven dependency or plugin
Apache 2.0Adds a comment as the first element in a Maven dependency or plugin.
org. openrewrite. maven. AddCommentToMavenDependencyRequired
An XPath expression used to find matching tags.
The first part of a dependency coordinate com.google.guava:guava:VERSION.
The second part of a dependency coordinate com.google.guava:guava:VERSION.
The text to add as a comment..
mod run . --recipe= org. openrewrite. maven. AddCommentToMavenDependency \
-P xPath= / project/ dependencies/ dependency \
-P groupId= com. google. guava \
-P artifactId= guava \
-P commentText= 'This is excluded due to CVE <X> and will be removed when we upgrade the next version is available. 'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.