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
ConstructorsConstructorDescriptionCreates a new instance ofAntRepositorySystemSupplier. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.model.building.ModelBuilderReturns theModelBuilderand stores it in themodelBuilderfield for later access.protected org.eclipse.aether.impl.RemoteRepositoryManagergetRemoteRepositoryManager(org.eclipse.aether.impl.UpdatePolicyAnalyzer updatePolicyAnalyzer, org.eclipse.aether.spi.connector.checksum.ChecksumPolicyProvider checksumPolicyProvider) Returns theRemoteRepositoryManagerand stores it in theremoteRepositoryManagerfield 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
-
Constructor Details
-
AntRepositorySystemSupplier
public AntRepositorySystemSupplier()Creates a new instance ofAntRepositorySystemSupplier.
-
-
Method Details
-
getModelBuilder
protected org.apache.maven.model.building.ModelBuilder getModelBuilder()Returns theModelBuilderand stores it in themodelBuilderfield for later access.- Overrides:
getModelBuilderin classorg.eclipse.aether.supplier.RepositorySystemSupplier- Returns:
- the
ModelBuilderused 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 theRemoteRepositoryManagerand stores it in theremoteRepositoryManagerfield for later access.- Overrides:
getRemoteRepositoryManagerin classorg.eclipse.aether.supplier.RepositorySystemSupplier- Parameters:
updatePolicyAnalyzer- the analyzer for update policieschecksumPolicyProvider- the provider for checksum policies- Returns:
- the
RemoteRepositoryManagerused for handling repository-specific configurations
-