Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Sep 1, 2025

Port of Maven 3 bugfix to Maven 4 (deprecatd)
maven-embedder module. Maven 4 by default is
not affected, but this PR aligns Maven 3
and deprecated module in Maven 4.

The "early" session used to load extension will populate cache in MavenExecutionRequest and same cache is later reused in "normal" session as well.

This is wrong, as if project uses same parent POM as any of loaded extnsions, data loss in form of lost input locations occurs.

Fixes #11081

Port of Maven 3 bugfix to Maven 4 (deprecatd)
`maven-embedder` module. Maven 4 by default is
**not affected**, but this PR aligns Maven 3
and deprecated module in Maven 4.

The "early" session used to load extension will populate
cache in MavenExecutionRequest and same cache is later
reused in "normal" session as well.

This is wrong, as if project uses same parent POM as any
of loaded extnsions, data loss in form of lost input
locations occurs.

Fixes apache#11081
@cstamas cstamas added this to the 4.0.0 milestone Sep 1, 2025
@cstamas cstamas self-assigned this Sep 1, 2025
@cstamas cstamas marked this pull request as ready for review September 1, 2025 16:07
@cstamas cstamas merged commit 667714d into apache:maven-4.0.x Sep 1, 2025
1 check passed
@cstamas cstamas deleted the issue-11081-mvn4.0 branch September 1, 2025 16:07
@cstamas cstamas linked an issue Sep 1, 2025 that may be closed by this pull request
@gnodet gnodet added the bug Something isn't working label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working mvn40

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data loss (input tracking) in certain cases

2 participants