Tabnine Logo
MavenStrategyStage.withClassPathResolution
Code IndexAdd Tabnine to your IDE (free)

How to use
withClassPathResolution
method
in
org.jboss.shrinkwrap.resolver.api.maven.MavenStrategyStage

Best Java code snippets using org.jboss.shrinkwrap.resolver.api.maven.MavenStrategyStage.withClassPathResolution (Showing top 2 results out of 315)

origin: com.github.albfernandez.richfaces/richfaces-build-resources

public void unpackContainerConfigurationFiles(@Observes ConfigureContainer event) {
  Validate.notNull(configuration, "fundamental test configuration is not setup");
  String configurationFiles = configuration.getContainerConfiguration();
  if (configurationFiles == null || configurationFiles.isEmpty()) {
    return;
  }
  Validate.notNull(configuration.getContainerHome(), "container home must be set");
  File containerHome = new File(configuration.getContainerHome());
  InputStream artifactStream = Maven.resolver().resolve(configurationFiles).withClassPathResolution(false).withoutTransitivity().asSingleInputStream();
  unzip(artifactStream, containerHome, true);
  log.info(String.format("The container configuration '%s' was unpacked into '%s'", configurationFiles,
      containerHome.getAbsolutePath()));
}
origin: com.github.albfernandez.richfaces/richfaces-build-resources

/**
 * Resolves Maven dependency and writes it to the cache, so it can be reused next run
 */
private void resolveMavenDependency(String missingDependency, File dir) {
  MavenResolverSystem resolver = getMavenResolver();
  JavaArchive[] dependencies;
  if (missingDependency.matches("^[^:]+:[^:]+:[^:]+")) {
    // resolution of the artifact without a version specified
    dependencies = resolver.resolve(missingDependency).withClassPathResolution(false).withTransitivity()
      .as(JavaArchive.class);
  } else {
    // resolution of the artifact without a version specified
    dependencies = resolver.loadPomFromFile("pom.xml").resolve(missingDependency)
      .withClassPathResolution(false).withTransitivity().as(JavaArchive.class);
  }
  for (JavaArchive archive : dependencies) {
    dir.mkdirs();
    if (mavenDependencyExcluded(archive.getName())) {
      continue;
    }
    final File outputFile = new File(dir, archive.getName());
    archive.as(ZipExporter.class).exportTo(outputFile, true);
  }
}
org.jboss.shrinkwrap.resolver.api.mavenMavenStrategyStagewithClassPathResolution

Popular methods of MavenStrategyStage

  • withTransitivity
  • withoutTransitivity
  • using

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Menu (java.awt)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim 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