-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POM is not preserved when we add or remove extensions with CLI #40853
Comments
/cc @ebullient (cli), @maxandersen (cli) |
Which command line did you run, exactly? Wondering if you were using the correct version of the plugin, as I think you might have to specify it on the command line. |
@gsmet https://github.com/jcarranzan/quarkus-reproducer/blob/pom-preserve-cli/src/test/java/io/quarkus/QuarkusCliPomIntegrityIT.java is the test, using |
@jcarranzan I don't think you persist comment addition back to the pom.xml file after https://github.com/jcarranzan/quarkus-reproducer/blob/pom-preserve-cli/src/test/java/io/quarkus/QuarkusCliPomIntegrityIT.java#L39C34-L39C41 |
I would recommend to start with a POM file containing comments and new lines. |
I tweak the test (https://github.com/jcarranzan/quarkus-reproducer/blob/pom-preserve-cli/src/test/java/io/quarkus/QuarkusCliPomIntegrityIT.java) with the @rsvoboda suggestion,
|
Thanks @jcarranzan for the update. I tried with quarkus command (version 3.10.2) and I can confirm that the comments are not preserved @gsmet
|
I've investigated and figured out that's caused by 68a1bbe, I'm working on a fix right now. |
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853
@jcarranzan I've tested with your reproducer with the latest Quarkus CLI (using |
Ok, thank you @gastaldi. |
@jcarranzan yes, you need to build my branch to test that |
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853 (cherry picked from commit 41ae1b3)
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853 (cherry picked from commit 41ae1b3)
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853 (cherry picked from commit 41ae1b3)
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853
This is necessary so `maven-model-helper` can know which pom.xml the change refers to. - Fixes quarkusio#40853
Describe the bug
I was testing the backport related to preserving POM integrity after adding an extension ( 2bb40f9).
However, it seems that POM integrity is still not preserved when we add or remove extensions through CLI commands.
I've created a reproducer to show you this behavior (
git clone -b pom-preserve-cli https://github.com/jcarranzan/quarkus-reproducer.git
).Expected behavior
The POM retains the same structure and comments after adding or removing an extension.
Actual behavior
The POM is overwritten, and comments are not preserved.
How to Reproduce?
git clone -b pom-preserve-cli https://github.com/jcarranzan/quarkus-reproducer.git
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.8.999-SNAPSHOT
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: