quarkus
subcommands change POM formatting and drops XML comments
#39048
Labels
area/cli
Related to quarkus cli (not maven/gradle/etc.)
area/devtools
Issues/PR related to maven, gradle, platform and cli tooling/plugins
kind/bug
Something isn't working
Describe the bug
When I use
quarkus ext add <something>
in an application, the command will fully rewrite the POM, changing formatting and, critically, dropping XML comments (<!-- ... -->
).Expected behavior
quarkus
subcommands manipulating the POM should not change its formatting, reorder properties or drop any meaningful information like XML comments.This seems possible as, from what I've seen,
quarkus update
manages to do it using OpenRewrite.Actual behavior
quarkus
subcommands manipulating the POM change its formatting and drop XML comments.I remember seeing them reorder Maven properties or dependencies as well, but I didn't check recently, so I may be wrong about that.
How to Reproduce?
Use
quarkus ext add hibernate-search-orm-outbox-polling
on a Quarkus application whose POM contains comments, e.g., https://github.com/quarkusio/search.quarkus.io where the POM contains this:Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.7.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: