Merged r549509 from 2.0.x:

Update OMIT_FOR_NEARER event to correctly reflect which node was actually omitted.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@549510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Hobson 2007-06-21 15:21:49 +00:00
parent de13a61f46
commit 87f98299ac
1 changed files with 2 additions and 1 deletions

View File

@ -229,15 +229,16 @@ public class DefaultArtifactCollector
// if we need to update scope of nearest to use farthest scope, use the nearest version, but farthest scope
nearest.disable();
farthest.getArtifact().setVersion( nearest.getArtifact().getVersion() );
fireEvent( ResolutionListener.OMIT_FOR_NEARER, listeners, nearest, farthest.getArtifact() );
}
else
{
farthest.disable();
}
fireEvent( ResolutionListener.OMIT_FOR_NEARER, listeners, farthest, nearest.getArtifact() );
}
}
}
}
else
{
previousNodes = new ArrayList();