You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/03/28 15:02:02 UTC
[jira] [Commented] (MNG-6228) Optionality not displayed in
dependency tree when run in debug mode
[ https://issues.apache.org/jira/browse/MNG-6228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069712#comment-17069712 ]
Hudson commented on MNG-6228:
-----------------------------
Build failed in Jenkins: Maven TLP » maven-studies » maven-metrics #4
See https://builds.apache.org/job/maven-box/job/maven-studies/job/maven-metrics/4/
> 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
> Priority: Major
> Fix For: 3.5.2
>
>
> 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
(v8.3.4#803005)