Bug: Reproducer and fix for #1583 by cstamas · Pull Request #1585 · apache/maven-resolver

added 8 commits

September 13, 2025 18:27
If the cycle is among winner nodes. Created UT as reproducer
but we will need more.
But all these fail the classic CR not the path!
Created UT that reproduces: classic CR passes ok, but
path CR fails, leave cycle in.

@cstamas

@cstamas

@cstamas cstamas changed the title Bug: Reproducer for #1583 Bug: Reproducer and fix for #1583

Sep 14, 2025

@cstamas cstamas linked an issue

Sep 14, 2025

that may be closed by this pull request

@cstamas

@cstamas cstamas marked this pull request as ready for review

September 14, 2025 12:16

slawekjaranowski

As other nodes will be marked as losers anyway (and probably eliminated)

@cstamas

Original code LEFT OUT some nodes from Path graph, hence implicitly left
cycles in as well (as Path graph was unaware of it). Now we make sure
all cycle starting nodes are added as well, AND we make sure they
are always "claimed" (winner or loser) as then the DN graph
is adjusted properly.

@cstamas

@cstamas

slawekjaranowski