if ("".equals(m2Coordinates))
continue artifacts;
DefaultArtifact artifact = new DefaultArtifact(m2Coordinates.trim());
- artifact.setVersion(m2Version);
+ if (artifact.getVersion() == null)
+ artifact.setVersion(m2Version);
URL url = MavenConventionsUtils.mavenRepoUrl(repoStr, artifact);
Path downloaded = download(url, originBase, artifact.toM2Coordinates() + ".jar");
JarEntry entry;
continue entries;
if (entry.getName().endsWith(".RSA") || entry.getName().endsWith(".SF"))
continue entries;
+ if (entry.getName().startsWith("META-INF/versions/"))
+ continue entries;
Path target = targetBundleDir.resolve(entry.getName());
Files.createDirectories(target.getParent());
if (!Files.exists(target)) {