// let scope be RUNTIME
log.log(Level.WARNING, "Invalid scope {0} of dependency {1} will be replaced by <scope>runtime</scope>",
new Object[] { dependency.getScope(), coordinate.toCanonicalForm() });
}
final MavenDependencySPI result = new MavenDependencyImpl(coordinate, scope,
dependency.isOptional(), undeclaredScope, exclusions.toArray(TYPESAFE_EXCLUSIONS_ARRAY));
return result;
}