maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [07/12] maven git commit: [MNG-6228] Optionality not displayed in dependency tree when run in debug mode
Date Sun, 21 May 2017 17:52:06 GMT
[MNG-6228] Optionality not displayed in dependency tree when run in debug mode

Log message in DefaultProjectDependenciesResolver has been extended with
"(optional)" if dependency is marked as optional (direct or transitive).


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/fd988e78
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/fd988e78
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/fd988e78

Branch: refs/heads/MNG-6196_slf4j
Commit: fd988e78e95a53c3a39ec944869ba62b0c7fc0f0
Parents: 6182a20
Author: Michael Osipov <michaelo@apache.org>
Authored: Tue May 9 22:15:21 2017 +0200
Committer: Michael Osipov <michaelo@apache.org>
Committed: Tue May 9 22:15:21 2017 +0200

----------------------------------------------------------------------
 .../maven/project/DefaultProjectDependenciesResolver.java       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/fd988e78/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
index 5a803af..4e26de2 100644
--- a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
+++ b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java
@@ -295,6 +295,11 @@ public class DefaultProjectDependenciesResolver
                     //      The resolver 1.0.x releases do not record premanaged state of
properties.
                     buffer.append( " (properties managed)" );
                 }
+
+                if ( dep.isOptional() )
+                {
+                    buffer.append( " (optional)" );
+                }
             }
             else
             {


Mime
View raw message