[
https://issues.apache.org/jira/browse/MRESOLVER-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamas Cservenak updated MRESOLVER-379:
--------------------------------------
Description:
Affects both old DF and new BF collectors.
Example:
* A1 -> B[1,3]
* B1 relocated to C1
* B2 relocated to C2
* B3 relocated to C3
In this example, as output of collection dirty tree (verbose) I'd expect:
{noformat}
A1
+- C1
+- C2
+- C3
{noformat}
But none of the DF or BF produce this, moreover, they produce DIFFERENT outputs:
DF does this:
{noformat}
A1
+- C1
{noformat}
BF does this:
{noformat}
A1
+- C3
{noformat}
Cause is probably as BF "reverse sort" versions, but none will return proper
range.
Real life example: MRESOLVER-376, where junit:junit-dep:[4.9,) range "maps
itself" onto junit:junit versions.
was:
Affects both old DF and new BF collectors.
Example:
* A1 -> B[1,3]
* B1 relocated to C1
* B2 relocated to C2
* B3 relocated to C3
In this example, as output of collection dirty tree I'd expect:
{noformat}
A1
+- C1
+- C2
+- C3
{noformat}
But none of the DF or BF produce this, moreover, they produce DIFFERENT outputs:
DF does this:
{noformat}
A1
+- C1
{noformat}
BF does this:
{noformat}
A1
+- C3
{noformat}
Cause is probably as BF "reverse sort" versions, but none will return proper
range.
Real life example: MRESOLVER-376, where junit:junit-dep:[4.9,) range "maps
itself" onto junit:junit versions.
> Problem when relocations and ranges are used in collection
> ----------------------------------------------------------
>
> Key: MRESOLVER-379
> URL: https://issues.apache.org/jira/browse/MRESOLVER-379
> Project: Maven Resolver
> Issue Type: Bug
> Components: Resolver
> Reporter: Tamas Cservenak
> Priority: Major
>
> Affects both old DF and new BF collectors.
> Example:
> * A1 -> B[1,3]
> * B1 relocated to C1
> * B2 relocated to C2
> * B3 relocated to C3
> In this example, as output of collection dirty tree (verbose) I'd expect:
> {noformat}
> A1
> +- C1
> +- C2
> +- C3
> {noformat}
> But none of the DF or BF produce this, moreover, they produce DIFFERENT
> outputs:
> DF does this:
> {noformat}
> A1
> +- C1
> {noformat}
> BF does this:
> {noformat}
> A1
> +- C3
> {noformat}
> Cause is probably as BF "reverse sort" versions, but none will return proper
> range.
> Real life example: MRESOLVER-376, where junit:junit-dep:[4.9,) range "maps
> itself" onto junit:junit versions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)