{
// No point in doing anything. nothing has changed.
return;
}
ArtifactReference toRef = new ArtifactReference();
toRef.setGroupId( fromRef.getGroupId() );
toRef.setArtifactId( fromRef.getArtifactId() );
toRef.setVersion( toVersion );
toRef.setClassifier( fromRef.getClassifier() );
toRef.setType( fromRef.getType() );
DependencyGraphNode nodeFROM = graph.getNode( fromRef );
DependencyGraphNode nodeTO = graph.getNode( toRef );
if ( nodeTO == null )
{
// new node doesn't exist in graph (yet)
nodeTO = new DependencyGraphNode( toRef );
nodeTO.setResolved( false );
graph.addNode( nodeTO );
VersionedReference projectRef = new VersionedReference();
projectRef.setGroupId( toRef.getGroupId() );
projectRef.setArtifactId( toRef.getArtifactId() );
projectRef.setVersion( toRef.getVersion() );
builder.resolveNode( graph, nodeTO, projectRef );
nodesAdded++;
}