Class AntRepositorySystemSupplier

java.lang.Object
org.eclipse.aether.supplier.RepositorySystemSupplier
org.apache.maven.resolver.internal.ant.AntRepositorySystemSupplier
All Implemented Interfaces:
Supplier<org.eclipse.aether.RepositorySystem>

public class AntRepositorySystemSupplier extends org.eclipse.aether.supplier.RepositorySystemSupplier
The Ant modified supplier, that on repository system creation "remembers" (and exposes) other required components as well.

This supplier retains references to the ModelBuilder and RemoteRepositoryManager instances created during the initialization of the repository system. These components are used later by the Ant infrastructure (e.g., for resolving POMs or remote repositories).

Since:
1.5.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of AntRepositorySystemSupplier.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.maven.model.building.ModelBuilder
    Returns the ModelBuilder and stores it in the modelBuilder field for later access.
    protected org.eclipse.aether.impl.RemoteRepositoryManager
    getRemoteRepositoryManager(org.eclipse.aether.impl.UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
    Returns the RemoteRepositoryManager and stores it in the remoteRepositoryManager field for later access.

    Methods inherited from class org.eclipse.aether.supplier.RepositorySystemSupplier

    get, getArtifactDescriptorReader, getArtifactResolver, getArtifactResolverPostProcessors, getBasicRepositoryConnectorFactory, getChecksumAlgorithmFactories, getChecksumAlgorithmFactorySelector, getChecksumExtractors, getChecksumPolicyProvider, getDependencyCollector, getDependencyCollectorDelegates, getDeployer, getFileProcessor, getInstaller, getLocalPathComposer, getLocalPathPrefixComposerFactory, getLocalRepositoryProvider, getMetadataGeneratorFactories, getMetadataResolver, getModelCacheFactory, getNamedLockFactories, getNamedLockFactoryAdapterFactory, getNameMappers, getOfflineController, getProvidedChecksumsSources, getRemoteRepositoryFilterManager, getRemoteRepositoryFilterSources, getRepositoryConnectorFactories, getRepositoryConnectorProvider, getRepositoryEventDispatcher, getRepositoryLayoutFactories, getRepositoryLayoutProvider, getRepositoryListeners, getRepositorySystemLifecycle, getSyncContextFactory, getTrackingFileManager, getTransporterFactories, getTransporterProvider, getTrustedChecksumsSources, getUpdateCheckManager, getUpdatePolicyAnalyzer, getVersionRangeResolver, getVersionResolver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AntRepositorySystemSupplier

      public AntRepositorySystemSupplier()
      Creates a new instance of AntRepositorySystemSupplier.
  • Method Details

    • getModelBuilder

      protected org.apache.maven.model.building.ModelBuilder getModelBuilder()
      Returns the ModelBuilder and stores it in the modelBuilder field for later access.
      Overrides:
      getModelBuilder in class org.eclipse.aether.supplier.RepositorySystemSupplier
      Returns:
      the ModelBuilder used for building effective models from POMs
    • getRemoteRepositoryManager

      protected org.eclipse.aether.impl.RemoteRepositoryManager getRemoteRepositoryManager(org.eclipse.aether.impl.UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider)
      Returns the RemoteRepositoryManager and stores it in the remoteRepositoryManager field for later access.
      Overrides:
      getRemoteRepositoryManager in class org.eclipse.aether.supplier.RepositorySystemSupplier
      Parameters:
      updatePolicyAnalyzer - the analyzer for update policies
      checksumPolicyProvider - the provider for checksum policies
      Returns:
      the RemoteRepositoryManager used for handling repository-specific configurations