145146147148149150151152153154155
try { MavenProject project = new MavenProject(); new Config().configure(project, jar.lookup(key)); Artifact artifact = project.toArtifact(jarPath); return artifact; } catch (IOException e) { log.log(Level.WARNING, e.toString(), e);
146147148149150151152153154155156
7980818283848586878889
try { MavenProject project = new MavenProject(); new Config().configure(project, _path); Artifact artifact = project.toArtifact(_path); for (ArtifactDependency dependency : artifact.getDependencies()) { loader.createArtifactManager().addDependency(dependency); } } catch (Exception e) {