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? |
Beta Was this translation helpful? Give feedback.
Answered by
timtebeek
Jan 9, 2026
Replies: 1 comment 2 replies
-
|
Hi Wim; this is now supported too following cb144fd |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
timtebeek
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