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:
Britton Isbell 2008-09-16 03:18:57 +00:00
parent 9e7c8be43c
commit f12437531f
1 changed files with 8 additions and 1 deletions

View File

@ -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
}