LinkedHashSet set = new LinkedHashSet();
for (Iterator iterator = repositories.iterator(); iterator.hasNext();) {
ListableRepository repository = (ListableRepository) iterator.next();
set.addAll(repository.list(artifact));
}
return (Artifact[]) set.toArray(new Artifact[set.size()]);
}
public LinkedHashSet resolveInClassLoader(Collection artifacts) throws MissingDependencyException {
return resolveInClassLoader(artifacts, Collections.EMPTY_SET);
}