if (locationMap.containsKey(location)) {
return;
}
try {
String noPrefixLocation = location.toString().substring(location.toString().lastIndexOf(":") + 1);
Parser parser = new Parser(noPrefixLocation);
String path = "repository/" + parser.getArtifactPath();
jos.putNextEntry(new JarEntry(path));
try (
InputStream is = location.toURL().openStream()
) {
StreamUtils.copy(is, jos);