Tabnine Logo
ConfigurableMavenResolverSystem.withRemoteRepo
Code IndexAdd Tabnine to your IDE (free)

How to use
withRemoteRepo
method
in
org.jboss.shrinkwrap.resolver.api.maven.ConfigurableMavenResolverSystem

Best Java code snippets using org.jboss.shrinkwrap.resolver.api.maven.ConfigurableMavenResolverSystem.withRemoteRepo (Showing top 15 results out of 315)

origin: org.kevoree/org.kevoree.bootstrap

private ConfigurableMavenResolverSystem getResolver(DeployUnit deployUnit) {
  String offlineProp = System.getProperty("offline", "false");
  boolean offline = Boolean.valueOf(offlineProp);
  ConfigurableMavenResolverSystem resolver = Maven
      .configureResolver()
      .useLegacyLocalRepo(true)
      .workOffline(offline);
  try {
    LogManager.getLogManager().readConfiguration(new FileInputStream(propFile));
  } catch (IOException e) {
    throw new RuntimeException("Unable to read " + propFile.getAbsolutePath());
  }
  // hacky way to treat Maven repositories as I don't want to change the Kevoree MM
  for (Value val : deployUnit.getFilters()) {
    if (val.getName().startsWith("repo_")) {
      try {
        resolver.withRemoteRepo(val.getName().substring(5), new URL(val.getValue()), "default");
      } catch (MalformedURLException e) {
        throw new RuntimeException("Invalid repository URL: " + val.getValue());
      }
    }
  }
  return resolver;
}
origin: enioka/jqm

.withRemoteRepo(MavenRemoteRepositories.createRemoteRepository("repo" + Math.abs(repo.hashCode()), repo, "default")
    .setUpdatePolicy(MavenUpdatePolicy.UPDATE_POLICY_NEVER));
origin: com.kumuluz.ee.testing/kumuluzee-arquillian-container

        "https://oss.sonatype.org/content/repositories/snapshots", "default");
sonatypeSnapshots.setUpdatePolicy(MavenUpdatePolicy.UPDATE_POLICY_DAILY);
resolver = resolver.withRemoteRepo(sonatypeSnapshots);
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

.withRemoteRepo(jbossPublic);
origin: com.adaptavist.shrinkwrap/shrinkwrap-atlassian-plugin-impl

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");
  }
}
origin: io.thorntail/arquillian-resolver

final ConfigurableMavenResolverSystem resolver = Maven.configureResolver()
    .withMavenCentralRepo(true)
    .withRemoteRepo(jbossPublic)
    .withRemoteRepo(gradleTools)
    .workOffline(offline);
        repo.setChecksumPolicy(MavenChecksumPolicy.CHECKSUM_POLICY_IGNORE);
        repo.setUpdatePolicy(MavenUpdatePolicy.UPDATE_POLICY_NEVER);
        resolver.withRemoteRepo(repo);
      });
origin: org.arquillian.algeron/arquillian-algeron-provider-maven-retriever

protected List<JavaArchive> resolveContracts() {
  List<JavaArchive> contracts = new ArrayList<>();
  final ConfigurableMavenResolverSystem configurableMavenResolverSystem = Maven.configureResolver();
  if (!"".equals(contractsMavenDependency.customSettings())) {
    configurableMavenResolverSystem.fromClassloaderResource(
      RunnerExpressionParser.parseExpressions(contractsMavenDependency.customSettings()));
  }
  if (contractsMavenDependency.offline()) {
    configurableMavenResolverSystem.workOffline();
  }
  if (!"".equals(contractsMavenDependency.remoteRepository())) {
    final String[] remoteRepository =
      getRemoteRepository(RunnerExpressionParser.parseExpressions(contractsMavenDependency.remoteRepository()));
    configurableMavenResolverSystem.withRemoteRepo(remoteRepository[NAME], remoteRepository[URL],
      remoteRepository[LAYOUT]);
  }
  String[] coordinates = contractsMavenDependency.value();
  for (String coordinate : coordinates) {
    contracts.add(resolve(RunnerExpressionParser.parseExpressions(coordinate), configurableMavenResolverSystem));
  }
  return contracts;
}
origin: MobiVM/robovm

public MavenResolvedArtifact resolveArtifact(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  }
}
origin: com.mobidevelop.robovm/robovm-maven-resolver

public MavenResolvedArtifact[] resolveArtifacts(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withTransitivity().asResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withTransitivity().asResolvedArtifact();
  }
}
origin: org.robovm/robovm-maven-resolver

public MavenResolvedArtifact[] resolveArtifacts(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withTransitivity().asResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withTransitivity().asResolvedArtifact();
  }
}
origin: com.mobidevelop.robovm/robovm-maven-resolver

public MavenResolvedArtifact resolveArtifact(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  }
}
origin: MobiVM/robovm

public MavenResolvedArtifact[] resolveArtifacts(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withTransitivity().asResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withTransitivity().asResolvedArtifact();
  }
}
origin: org.robovm/robovm-maven-resolver

public MavenResolvedArtifact resolveArtifact(String artifact) {
  try {
    /* do offline check first */
    return Maven.configureResolver().workOffline().resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  } catch (NoResolvedResultException nre) {
    return Maven
        .configureResolver()
        .withRemoteRepo("Sonatype Nexus Snapshots",
            "https://oss.sonatype.org/content/repositories/snapshots/", "default")
        .resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
  }
}
origin: enioka/jqm

  @Test(expected = NoResolvedResultException.class)
  public void testFailingDependency() throws Exception
  {
    jqmlogger.debug("**********************************************************");
    jqmlogger.debug("Starting test testFailingDependency");

    SLF4JBridgeHandler.install();

    Maven.configureResolver()
        .withRemoteRepo(MavenRemoteRepositories.createRemoteRepository("marsu", "http://marsupilami.com", "default"))
        .withMavenCentralRepo(false).resolve("com.enioka.jqm:marsu:1.1.4").withTransitivity().asFile();
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

.withRemoteRepo(jbossPublic);
    repo.setChecksumPolicy(MavenChecksumPolicy.CHECKSUM_POLICY_IGNORE);
    repo.setUpdatePolicy(MavenUpdatePolicy.UPDATE_POLICY_NEVER);
    resolver.withRemoteRepo(repo);
  });
org.jboss.shrinkwrap.resolver.api.mavenConfigurableMavenResolverSystemwithRemoteRepo

Popular methods of ConfigurableMavenResolverSystem

  • loadPomFromFile
  • resolve
  • workOffline
  • withMavenCentralRepo
  • addDependency
  • fromClassloaderResource
  • fromFile
  • useLegacyLocalRepo
  • withClassPathResolution
  • addDependencies
  • configureViaPlugin
  • resolveVersionRange
  • configureViaPlugin,
  • resolveVersionRange

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Collectors (java.util.stream)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now