if (artifactResolver == null) {
// if it is already resolved we are done
if (artifact.isResolved()) {
return dependency;
}
throw new MissingDependencyException("Artifact is not resolved and there no artifact resolver available: ", artifact, parentStack);
}
// resolve the artifact
try {
artifact = artifactResolver.resolveInClassLoader(artifact, parents);