Class AetherStubDownloader

java.lang.Object
org.springframework.cloud.contract.stubrunner.AetherStubDownloader
All Implemented Interfaces:
StubDownloader

public class AetherStubDownloader extends Object implements StubDownloader
Author:
Mariusz Smykula, EddĂș MelĂ©ndez
  • Constructor Details

    • AetherStubDownloader

      public AetherStubDownloader(StubRunnerOptions stubRunnerOptions)
    • AetherStubDownloader

      public AetherStubDownloader(org.eclipse.aether.RepositorySystem repositorySystem, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories, org.eclipse.aether.RepositorySystemSession session, shaded.org.apache.maven.settings.Settings settings)
      Used by the Maven Plugin.
      Parameters:
      repositorySystem - Maven repository system
      remoteRepositories - remote artifact repositories
      session - repository system session
  • Method Details

    • downloadAndUnpackStubJar

      public Map.Entry<StubConfiguration,File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration)
      Description copied from interface: StubDownloader
      Note: Actually the artifact doesn't have to be a JAR. method name contains that suffix or historical reasons.
      Specified by:
      downloadAndUnpackStubJar in interface StubDownloader
      Parameters:
      stubConfiguration - configuration for which contracts and stubs should be resolved
      Returns:
      a mapping of updated StubConfiguration (it will contain the resolved version) and the location of the downloaded stubs. If there was no artifact this method will return null.