Skip to content

[maven-4.0.x] bug: fix duplicate dependency in effective model (fixes #2532) (#2554)#2556

Merged
gnodet merged 1 commit intoapache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-2554
Jul 2, 2025
Merged

[maven-4.0.x] bug: fix duplicate dependency in effective model (fixes #2532) (#2554)#2556
gnodet merged 1 commit intoapache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-2554

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Jul 2, 2025

Backport

This will backport the following commits from master to maven-4.0.x:

Questions ?

Please refer to the Backport tool documentation

…pache#2554)

* bug: fix duplicate dependency in effective model (fixes apache#2532)

* Add integration test for apache#2532 duplicate dependency effective model fix

- Add MavenITgh2532DuplicateDependencyEffectiveModelTest to verify the fix
- Test reproduces the scenario where property placeholders in dependency
  coordinates caused duplicate dependency errors after interpolation
- Verifies that deduplication now happens after interpolation as expected
- Add test to TestSuiteOrdering for proper execution order

(cherry picked from commit 7ac568b)
@gnodet gnodet merged commit 9f21031 into apache:maven-4.0.x Jul 2, 2025
19 checks passed
@github-actions github-actions bot added this to the 4.0.0 milestone Jul 2, 2025
@gnodet gnodet added the bug Something isn't working label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants