mirror of https://github.com/apache/maven.git
[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).
This commit is contained in:
parent
6182a2083f
commit
fd988e78e9
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue