mirror of https://github.com/apache/maven.git
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:
parent
e3796f6619
commit
385619acb8
|
@ -162,13 +162,15 @@ public class DefaultProjectDependenciesResolver
|
||||||
{
|
{
|
||||||
for ( ArtifactResult ar : results )
|
for ( ArtifactResult ar : results )
|
||||||
{
|
{
|
||||||
|
DependencyNode node = ar.getRequest().getDependencyNode();
|
||||||
if ( ar.isResolved() )
|
if ( ar.isResolved() )
|
||||||
{
|
{
|
||||||
result.addResolvedDependency( ar.getRequest().getDependencyNode().getDependency() );
|
node.setArtifact( ar.getArtifact() );
|
||||||
|
result.addResolvedDependency( node.getDependency() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result.setResolutionErrors( ar.getRequest().getDependencyNode().getDependency(), ar.getExceptions() );
|
result.setResolutionErrors( node.getDependency(), ar.getExceptions() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue