private static File resolveVersion(String warVersion) { try { return getResolver().resolve(warVersion).withoutTransitivity().asSingleFile(); } catch (NoResolvedResultException e) { LOG.warn("Could not find version", e); return null; } }
private static File resolveVersion(String warVersion) { try { return getResolver().resolve(warVersion).withoutTransitivity().asSingleFile(); } catch (NoResolvedResultException e) { LOG.warn("Could not find version", e); return null; } }
private void addSpringScannerDependencies() { if (springScannerOne) { if (debug) { log.info("Generating Spring Scanner 1 compatible test plugin"); } final File springScannerAnnotation = Maven.configureResolver() .withRemoteRepo(ATLASSIAN_MAVEN) .resolve("com.atlassian.plugin:atlassian-spring-scanner-annotation:" + SPRING_SCANNER_1_VERSION) .withoutTransitivity() .asSingleFile(); final File springScannerRuntime = Maven.configureResolver() .withRemoteRepo(ATLASSIAN_MAVEN) .resolve("com.atlassian.plugin:atlassian-spring-scanner-runtime:" + SPRING_SCANNER_1_VERSION) .withoutTransitivity() .asSingleFile(); addAsLibrary(springScannerAnnotation); addAsLibrary(springScannerRuntime); } else if (debug) { log.info("Generating Spring Scanner 2+ compatible test plugin"); } }
@Override public ArtifactSpec resolve(ArtifactSpec spec) { if (spec.file == null) { final File localFile = new File(settings().getLocalRepository(), spec.jarRepoPath()); if (localFile.exists()) { spec.file = localFile; } else { resetListeners(); try { final File file = this.resolver.resolve(spec.mavenGav()).withoutTransitivity().asSingleFile(); if (file != null) { spec.file = file; } } finally { resolutionComplete(); } } } return spec.file != null ? spec : null; }
/** * Obtains JavaArchive with phantomjs binary */ protected File getJavaArchive(String version) { String v = version; if (v == null) { v = ResolverConfiguration.get().version(); } final String gav = getArtifactCanonicalForm(v); return Maven.resolver().resolve(gav).withoutTransitivity().asSingleFile(); }
@Override public ArtifactSpec resolve(ArtifactSpec spec) { if (spec.file == null) { final File localFile = new File(settings().getLocalRepository(), spec.jarRepoPath()); if (localFile.exists()) { spec.file = localFile; } else { resetListeners(); try { final File file = this.resolver.resolve(spec.mavenGav()).withoutTransitivity().asSingleFile(); if (file != null) { spec.file = file; } } finally { resolutionComplete(); } } } return spec.file != null ? spec : null; }
public static WebArchive createKieServerWar() { try { final File kieServerFile = Maven.configureResolver().workOffline().loadPomFromFile("pom.xml") .resolve("org.kie.server:kie-server:war:ee7:?").withoutTransitivity().asSingleFile(); return ShrinkWrap.create(ZipImporter.class, "kie-server.war").importFrom(kieServerFile) .as(WebArchive.class); } catch (Exception ex) { ex.printStackTrace(); throw new RuntimeException(ex); } }
public static WebArchive createKieServerControllerWar() { try { final File kieServerControllerFile = Maven.configureResolver().workOffline().loadPomFromFile("pom.xml") .resolve("org.kie.server:kie-server-controller-standalone:war:ee7:?").withoutTransitivity().asSingleFile(); return ShrinkWrap.create(ZipImporter.class, "kie-server-controller.war").importFrom(kieServerControllerFile) .as(WebArchive.class); } catch (Exception ex) { ex.printStackTrace(); throw new RuntimeException(ex); } }
public static WebArchive createKieServerWar() { try { final File kieServerFile = Maven.configureResolver().workOffline().loadPomFromFile("pom.xml") .resolve("org.kie.server:kie-server:war:ee7:?").withoutTransitivity().asSingleFile(); return ShrinkWrap.create(ZipImporter.class, "kie-server.war").importFrom(kieServerFile) .as(WebArchive.class); } catch (Exception ex) { ex.printStackTrace(); throw new RuntimeException(ex); } }
private String getCaseAppContext() { final String showcaseGAV = loadShowcaseGAV(); final File file = Maven.configureResolver().workOffline().resolve(showcaseGAV).withoutTransitivity().asSingleFile(); return "/" + FilenameUtils.getBaseName(file.getName()); }
.resolve(dep.getCoordinate().toCanonicalForm()) .withoutTransitivity() .asSingleFile(); } catch (Exception e) { Log.error(indent + " ! " + key);