Repository navigation
How to add a comment to a Maven plugin? #6502
|
I want to write a custom recipe that adds a Maven plugin to the pom.xml, but also adds a comment just above. I looked at https://docs.openrewrite.org/recipes/maven/addcommenttomavendependency but that only seems to work for dependencies, not for plugins. I tried something like this: But that does not add the comment. Is there a way to do this? |
Answered by
timtebeek
Jan 9, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Wim; this is now supported too following cb144fd