new MDArtifact(md, module, type, type);
ArtifactDownloadReport report =
ivy.download(artifact, null);
DownloadStatus status = report.getDownloadStatus();
if (status == DownloadStatus.FAILED) {
throw new BuildException("Could not resolve resource.");
}
String path = ivy.getArchivePathInCache(artifact);