for (ListableRepository repo : repos) {
// if the artifact is not fully resolved then try to resolve it
if (!artifact.isResolved()) {
SortedSet results = repo.list(artifact);
if (!results.isEmpty()) {
artifact = (Artifact) results.first();
} else {
continue;
}
}
File url = repo.getLocation(artifact);