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.ModelBuilder
Returns theModelBuilder
and stores it in themodelBuilder
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 theRemoteRepositoryManager
and stores it in theremoteRepositoryManager
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
-
Constructor Details
-
AntRepositorySystemSupplier
public AntRepositorySystemSupplier()Creates a new instance ofAntRepositorySystemSupplier
.
-
-
Method Details
-
getModelBuilder
protected org.apache.maven.model.building.ModelBuilder getModelBuilder()Returns theModelBuilder
and stores it in themodelBuilder
field for later access.- Overrides:
getModelBuilder
in classorg.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 theRemoteRepositoryManager
and stores it in theremoteRepositoryManager
field for later access.- Overrides:
getRemoteRepositoryManager
in classorg.eclipse.aether.supplier.RepositorySystemSupplier
- Parameters:
updatePolicyAnalyzer
- the analyzer for update policieschecksumPolicyProvider
- the provider for checksum policies- Returns:
- the
RemoteRepositoryManager
used for handling repository-specific configurations
-