mirror of https://github.com/apache/maven.git
[MNG-4600] [regression] Optional flag from dependency management applied to dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@925481 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a1f22c3da7
commit
699fc5b81d
|
@ -80,6 +80,13 @@ public class DefaultDependencyManagementInjector
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mergeDependency_Optional( Dependency target, Dependency source, boolean sourceDominant,
|
||||
Map<Object, Object> context )
|
||||
{
|
||||
// optional flag is not managed
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mergeDependency_Exclusions( Dependency target, Dependency source, boolean sourceDominant,
|
||||
Map<Object, Object> context )
|
||||
|
@ -91,8 +98,7 @@ public class DefaultDependencyManagementInjector
|
|||
|
||||
for ( Exclusion element : src )
|
||||
{
|
||||
Exclusion clone = new Exclusion();
|
||||
mergeExclusion( clone, element, true, context );
|
||||
Exclusion clone = element.clone();
|
||||
target.addExclusion( clone );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue