Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.0
-
None
Description
Consider you have optional dependencies in your POM and run Maven with -X, you'll see:
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=1, ConflictMarker.nodeCount=6, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2, ConflictResolver.conflictItemCount=5, DefaultDependencyCollector.collectTime=26, DefaultDependencyCollector.transformTime=6} [DEBUG] org.apache.maven.its.mng5935:test:jar:0.1 [DEBUG] com.mysema.querydsl:querydsl-core:jar:3.4.3:compile [DEBUG] com.google.guava:guava:jar:17.0:compile (version managed from 14.0) [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.3:compile (version managed from 1.3.9) [DEBUG] com.mysema.commons:mysema-commons-lang:jar:0.2.4:compile [DEBUG] com.infradna.tool:bridge-method-annotation:jar:1.13:compile
The optional flag is never displayed. This leads to two issues:
1. It causes confusion with the user
2. The user thinks that the option flag does not work
This required information shall be printed as same as MDEP does: ...(optional)
The expected result would be:
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=1, ConflictMarker.nodeCount=6, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2, ConflictResolver.conflictItemCount=5, DefaultDependencyCollector.collectTime=26, DefaultDependencyCollector.transformTime=6} [DEBUG] org.apache.maven.its.mng5935:test:jar:0.1 [DEBUG] com.mysema.querydsl:querydsl-core:jar:3.4.3:compile (optional) [DEBUG] com.google.guava:guava:jar:17.0:compile (version managed from 14.0) (optional) [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.3:compile (version managed from 1.3.9) (optional) [DEBUG] com.mysema.commons:mysema-commons-lang:jar:0.2.4:compile (optional) [DEBUG] com.infradna.tool:bridge-method-annotation:jar:1.13:compile (optional)
Attachments
Attachments
Issue Links
- is related to
-
MSHARED-437 maven-dependency-tree removes optional flag from managed dependencies
- Closed