o Made project dependency graph reflect partial resolution properly

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@992092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-09-02 19:59:15 +00:00
parent e3796f6619
commit 385619acb8
1 changed files with 4 additions and 2 deletions

View File

@ -162,13 +162,15 @@ public class DefaultProjectDependenciesResolver
{
for ( ArtifactResult ar : results )
{
DependencyNode node = ar.getRequest().getDependencyNode();
if ( ar.isResolved() )
{
result.addResolvedDependency( ar.getRequest().getDependencyNode().getDependency() );
node.setArtifact( ar.getArtifact() );
result.addResolvedDependency( node.getDependency() );
}
else
{
result.setResolutionErrors( ar.getRequest().getDependencyNode().getDependency(), ar.getExceptions() );
result.setResolutionErrors( node.getDependency(), ar.getExceptions() );
}
}
}