Package org.eclipse.aether.internal.impl
Class DefaultArtifactResolver
java.lang.Object
org.eclipse.aether.internal.impl.DefaultArtifactResolver
- All Implemented Interfaces:
ArtifactResolver
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultArtifactResolver
extends Object
implements ArtifactResolver, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultArtifactResolver
(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, VersionResolver versionResolver, UpdateCheckManager updateCheckManager, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController, Map<String, org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> artifactResolverPostProcessors, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) org.eclipse.aether.resolution.ArtifactResult
resolveArtifact
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactRequest request) Resolves the path for an artifact.List
<org.eclipse.aether.resolution.ArtifactResult> resolveArtifacts
(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.ArtifactRequest> requests) Resolves the paths for a collection of artifacts.setArtifactResolverPostProcessors
(Map<String, org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> artifactResolverPostProcessors) setFileProcessor
(org.eclipse.aether.spi.io.FileProcessor fileProcessor) setLoggerFactory
(org.eclipse.aether.spi.log.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
(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) setUpdateCheckManager
(UpdateCheckManager updateCheckManager) setVersionResolver
(VersionResolver versionResolver)
-
Constructor Details
-
DefaultArtifactResolver
Deprecated. -
DefaultArtifactResolver
@Inject public DefaultArtifactResolver(org.eclipse.aether.spi.io.FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, VersionResolver versionResolver, UpdateCheckManager updateCheckManager, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, OfflineController offlineController, Map<String, org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> artifactResolverPostProcessors, RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
-
Method Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setLoggerFactory
@Deprecated public DefaultArtifactResolver setLoggerFactory(org.eclipse.aether.spi.log.LoggerFactory loggerFactory) Deprecated.not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibility -
setFileProcessor
public DefaultArtifactResolver setFileProcessor(org.eclipse.aether.spi.io.FileProcessor fileProcessor) -
setRepositoryEventDispatcher
public DefaultArtifactResolver setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
setVersionResolver
-
setUpdateCheckManager
-
setRepositoryConnectorProvider
public DefaultArtifactResolver setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider) -
setRemoteRepositoryManager
public DefaultArtifactResolver setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) -
setSyncContextFactory
public DefaultArtifactResolver setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) -
setOfflineController
-
setArtifactResolverPostProcessors
public DefaultArtifactResolver setArtifactResolverPostProcessors(Map<String, org.eclipse.aether.spi.resolution.ArtifactResolverPostProcessor> artifactResolverPostProcessors) -
setRemoteRepositoryFilterManager
public DefaultArtifactResolver setRemoteRepositoryFilterManager(RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
resolveArtifact
public org.eclipse.aether.resolution.ArtifactResult resolveArtifact(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactRequest request) throws org.eclipse.aether.resolution.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:
org.eclipse.aether.resolution.ArtifactResolutionException
- If the artifact could not be resolved.- See Also:
-
resolveArtifacts
public List<org.eclipse.aether.resolution.ArtifactResult> resolveArtifacts(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.ArtifactRequest> requests) throws org.eclipse.aether.resolution.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:
org.eclipse.aether.resolution.ArtifactResolutionException
- If any artifact could not be resolved.- See Also:
-