throw new IllegalStateException("Artifact '" + artifactId + ":" + type + "' not found in path: " + srcDir + ", absolutePath: " + srcDir.toAbsolutePath());
} catch (IllegalArgumentException e) {
throw new IllegalStateException("More than 1 version of artifact '" + artifactId + ":" + type + "' found in path: " + srcDir + ", absolutePath: " + srcDir.toAbsolutePath() + " -> " + paths);
}
} catch (IOException e) {
throw new RuntimeIOException("Exception finding artifact " + artifactId + "@" + type + " in " + srcDir);
}
}