{
VersionRange spec = VersionRange.createFromVersionSpec( dependency.getVersion() );
if ( spec == null )
{
throw new InvalidVersionSpecificationException( "Dependency version was null" );
}
return artifactFactory.createDependencyArtifact( dependency.getGroupId(), dependency.getArtifactId(), spec,
dependency.getType(), dependency.getClassifier(), dependency
.getScope() );