cstamas commented on issue #2325:
URL:
https://github.com/apache/maven-resolver/issues/2325#issuecomment-6981835103
Created test matrix with data provided in this issue, my results are:
### With cycle
```
CR: ClassicConflictResolver
Input:
test:root:jar:1
+- test:p:jar:1
| \- test:a:jar:1
| \- test:b:jar:1
| +- test:a:jar:1
| | \- test:b:jar:1 (cycle)
| \- test:c:jar:1 (range '[1,1]')
\- test:c:jar:2
Output:
test:root:jar:1
+- test:p:jar:1
| \- test:a:jar:1
| \- test:b:jar:1
\- test:c:jar:2
```
```
CR: PathConflictResolver
Input:
test:root:jar:1
+- test:p:jar:1
| \- test:a:jar:1
| \- test:b:jar:1
| +- test:a:jar:1
| | \- test:b:jar:1 (cycle)
| \- test:c:jar:1 (range '[1,1]')
\- test:c:jar:2
Output:
test:root:jar:1
\- test:p:jar:1
\- test:a:jar:1
\- test:b:jar:1
\- test:c:jar:1 (range '[1,1]')
```
### Without cycle
```
CR: ClassicConflictResolver
Input:
test:root:jar:1
+- test:p:jar:1
| \- test:a:jar:1
| \- test:b:jar:1
| \- test:c:jar:1 (range '[1,1]')
\- test:c:jar:2
Output:
test:root:jar:1
\- test:p:jar:1
\- test:a:jar:1
\- test:b:jar:1
\- test:c:jar:1 (range '[1,1]')
```
```
CR: PathConflictResolver
Input:
test:root:jar:1
+- test:p:jar:1
| \- test:a:jar:1
| \- test:b:jar:1
| \- test:c:jar:1 (range '[1,1]')
\- test:c:jar:2
Output:
test:root:jar:1
\- test:p:jar:1
\- test:a:jar:1
\- test:b:jar:1
\- test:c:jar:1 (range '[1,1]')
```
So issue is right: classic ignores hard requirement when cycle present.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]