for (String artifact : artifacts) {
String project = artifact;
if (project.indexOf(':') == -1) {
project = defaultGroup + ":" + project;
}
Vertex projectVertex = dag.getVertex(project);
if (projectVertex == null) throw new MissingProjectException(project);
gatherProjects(projectVertex, ps, visited, out);
}
// sort them again