You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/05/09 19:35:04 UTC

[jira] [Created] (MNG-6228) Optionality not displayed in dependency tree when run in debug mode

Michael Osipov created MNG-6228:
-----------------------------------

             Summary: Optionality not displayed in dependency tree when run in debug mode
                 Key: MNG-6228
                 URL: https://issues.apache.org/jira/browse/MNG-6228
             Project: Maven
          Issue Type: Improvement
          Components: Dependencies, Logging
    Affects Versions: 3.5.0
            Reporter: Michael Osipov
            Assignee: Michael Osipov
             Fix For: 3.5.1-candidate


Consider you have optional dependencies in your POM and run Maven with {{-X}}, you'll see:

{noformat}
[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
{noformat}

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:
{noformat}
[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)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)