Skip to content

Conversation

aloubyansky
Copy link
Member

Fixes #49297

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven labels Sep 4, 2025
@@ -110,8 +110,11 @@ static void setProjectModels(QuarkusBootstrapMojo mojo, BootstrapMavenContextCon
* @return raw POM
*/
private static Model getRawModel(MavenProject mp) {
final Model model = mp.getOriginalModel();
Model model = mp.getOriginalModel();
Copy link
Contributor

@turing85 turing85 Sep 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not clone the model unconditionally? Isn't here an unconditional modification in line 125?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to deep clone unless there is a good reason to do that.
IIRC, the point of that POM file set was not to override another path but to make sure there is a POM file associated with a raw model.
To perfectly isolate the original model, we could clone it unconditionally - true.

Copy link

quarkus-bot bot commented Sep 4, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 0a49087.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@gsmet gsmet merged commit 89ff587 into quarkusio:main Sep 5, 2025
56 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.28 - main milestone Sep 5, 2025
@gsmet gsmet modified the milestones: 3.28 - main, 3.26.3 Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven kind/bugfix triage/backport-3.20
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quarkus-maven-plugin: dependency information is stored in the maven context and not properly cleaned up
3 participants