[
https://issues.apache.org/jira/browse/MRESOLVER-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739019#comment-17739019
]
Tamas Cservenak commented on MRESOLVER-379:
-------------------------------------------
Yes, "dirty tree", the "verbose" output. I used this existing (and passing) UT
as "template":
https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.13/maven-resolver-impl/src/test/java/org/eclipse/aether/internal/impl/collect/DependencyCollectorDelegateTestSupport.java#L501
That produces for BF this verbose tree:
https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.13/maven-resolver-impl/src/test/resources/artifact-descriptions/transitiveDepsUseRangesDirtyTreeResult_BF.txt
While DF produce this verbose tree:
https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.13/maven-resolver-impl/src/test/resources/artifact-descriptions/transitiveDepsUseRangesDirtyTreeResult_DF.txt
Only difference between BF and DF is version ordering.
> 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 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)