mirror of https://github.com/apache/maven.git
Fix: If a child dependency matches a parent dependency artifactId and groupId AND both parent and child dependency versions are null AND their types are not equal, then it should not join the dependency.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@695717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e7c8be43c
commit
f12437531f
|
@ -153,7 +153,14 @@ public final class ArtifactModelContainerFactory
|
|||
{
|
||||
if ( version == null )
|
||||
{
|
||||
return ModelContainerAction.JOIN;
|
||||
if ( c.type.equals( type ) )
|
||||
{
|
||||
return ModelContainerAction.JOIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ModelContainerAction.NOP;
|
||||
}
|
||||
}
|
||||
return ModelContainerAction.DELETE;//TODO Verify - PluginManagement Section may make versions equal
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue