private static MavenDependencyExclusion[] toMavenExclusions(String[] exclusions) { MavenDependencyExclusion[] mavenExclusions = new MavenDependencyExclusion[exclusions.length]; for (int i = 0; i < exclusions.length; i++) { mavenExclusions[i] = MavenDependencies.createExclusion(exclusions[i]); } return mavenExclusions; } }
private static MavenDependencyExclusion[] toMavenExclusions(String[] exclusions) { MavenDependencyExclusion[] mavenExclusions = new MavenDependencyExclusion[exclusions.length]; for (int i = 0; i < exclusions.length; i++) { mavenExclusions[i] = MavenDependencies.createExclusion(exclusions[i]); } return mavenExclusions; } }
public static JavaArchive[] getEngineSpring() { if(CACHED_SPRING_ASSETS != null) { return CACHED_SPRING_ASSETS; } else { JavaArchive[] resolvedArchives = Maven.configureResolver() .workOffline() .loadPomFromFile("pom.xml") .addDependencies( MavenDependencies.createDependency("org.camunda.bpm:camunda-engine-spring", ScopeType.COMPILE, false, MavenDependencies.createExclusion("org.camunda.bpm:camunda-engine")), MavenDependencies.createDependency("org.springframework:spring-web", ScopeType.COMPILE, false)) .resolve() .withTransitivity() .as(JavaArchive.class); if(resolvedArchives.length == 0) { throw new RuntimeException("could not resolve org.camunda.bpm:camunda-engine-spring"); } else { CACHED_SPRING_ASSETS = resolvedArchives; return CACHED_SPRING_ASSETS; } } }
public static MavenDependencyExclusion fromExclusion(final Exclusion exclusion) { final MavenDependencyExclusion translated = MavenDependencies.createExclusion(exclusion.getGroupId(), exclusion.getArtifactId()); return translated; }
public static MavenDependencyExclusion fromExclusion(final Exclusion exclusion) { final MavenDependencyExclusion translated = MavenDependencies.createExclusion(exclusion.getGroupId(), exclusion.getArtifactId()); return translated; }
public static MavenDependencyExclusion fromExclusion(final org.apache.maven.model.Exclusion exclusion) { final MavenDependencyExclusion translated = MavenDependencies.createExclusion(exclusion.getGroupId(), exclusion.getArtifactId()); return translated; }
public static MavenDependencyExclusion fromExclusion(final org.apache.maven.model.Exclusion exclusion) { final MavenDependencyExclusion translated = MavenDependencies.createExclusion(exclusion.getGroupId(), exclusion.getArtifactId()); return translated; }
throw new CoordinateParseException("Canonical form must be \"groupId:artifactId\"; got: " + canonicalForm); final MavenDependencyExclusion exclusion = createExclusion(groupId, artifactId); return exclusion;
.addAsLibraries(resolver.addDependencies( MavenDependencies.createDependency("org.mockito:mockito-core", ScopeType.TEST, false, MavenDependencies.createExclusion("org.hamcrest:hamcrest-core"))).resolve() .withTransitivity().asFile())