Package org.eclipse.aether.internal.impl
Class DefaultArtifactResolver
java.lang.Object
org.eclipse.aether.internal.impl.DefaultArtifactResolver
- All Implemented Interfaces:
ArtifactResolver
,Service
@Singleton
@Named
public class DefaultArtifactResolver
extends Object
implements ArtifactResolver, Service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.resolveArtifact
(RepositorySystemSession session, ArtifactRequest request) Resolves the path for an artifact.resolveArtifacts
(RepositorySystemSession session, Collection<? extends ArtifactRequest> requests) Resolves the paths for a collection of artifacts.setArtifactResolverPostProcessors
(Map<String, ArtifactResolverPostProcessor> artifactResolverPostProcessors) setFileProcessor
(FileProcessor fileProcessor) setLoggerFactory
(LoggerFactory loggerFactory) Deprecated.not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibilitysetOfflineController
(OfflineController offlineController) setRemoteRepositoryFilterManager
(RemoteRepositoryFilterManager remoteRepositoryFilterManager) setRemoteRepositoryManager
(RemoteRepositoryManager remoteRepositoryManager) setRepositoryConnectorProvider
(RepositoryConnectorProvider repositoryConnectorProvider) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(SyncContextFactory syncContextFactory) setUpdateCheckManager
(UpdateCheckManager updateCheckManager) setVersionResolver
(VersionResolver versionResolver)
-
Constructor Details
-
DefaultArtifactResolver
public DefaultArtifactResolver()
-
-
Method Details
-
initService
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
setLoggerFactory
Deprecated.not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibility -
setFileProcessor
-
setRepositoryEventDispatcher
public DefaultArtifactResolver setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
setVersionResolver
-
setUpdateCheckManager
-
setRepositoryConnectorProvider
public DefaultArtifactResolver setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider) -
setRemoteRepositoryManager
public DefaultArtifactResolver setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) -
setSyncContextFactory
-
setOfflineController
-
setArtifactResolverPostProcessors
public DefaultArtifactResolver setArtifactResolverPostProcessors(Map<String, ArtifactResolverPostProcessor> artifactResolverPostProcessors) -
setRemoteRepositoryFilterManager
public DefaultArtifactResolver setRemoteRepositoryFilterManager(RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
resolveArtifact
public ArtifactResult resolveArtifact(RepositorySystemSession session, ArtifactRequest request) throws ArtifactResolutionException Description copied from interface:ArtifactResolver
Resolves the path for an artifact. The artifact will be downloaded to the local repository if necessary. An artifact that is already resolved will be skipped and is not re-resolved. Note that this method assumes that any relocations have already been processed and the artifact coordinates are used as-is.- Specified by:
resolveArtifact
in interfaceArtifactResolver
- Parameters:
session
- The repository session, must not benull
.request
- The resolution request, must not benull
.- Returns:
- The resolution result, never
null
. - Throws:
ArtifactResolutionException
- If the artifact could not be resolved.- See Also:
-
resolveArtifacts
public List<ArtifactResult> resolveArtifacts(RepositorySystemSession session, Collection<? extends ArtifactRequest> requests) throws ArtifactResolutionException Description copied from interface:ArtifactResolver
Resolves the paths for a collection of artifacts. Artifacts will be downloaded to the local repository if necessary. Artifacts that are already resolved will be skipped and are not re-resolved. Note that this method assumes that any relocations have already been processed and the artifact coordinates are used as-is.- Specified by:
resolveArtifacts
in interfaceArtifactResolver
- Parameters:
session
- The repository session, must not benull
.requests
- The resolution requests, must not benull
.- Returns:
- The resolution results (in request order), never
null
. - Throws:
ArtifactResolutionException
- If any artifact could not be resolved.- See Also:
-