Package org.eclipse.aether.internal.impl
Class DefaultArtifactResolver
java.lang.Object
org.eclipse.aether.internal.impl.DefaultArtifactResolver
- All Implemented Interfaces:
ArtifactResolver
-
Constructor Summary
ConstructorDescriptionDefaultArtifactResolver
(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, VersionResolver versionResolver, UpdateCheckManager updateCheckManager, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, SyncContextFactory syncContextFactory, OfflineController offlineController, Map<String, ArtifactResolverPostProcessor> artifactResolverPostProcessors, RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionresolveArtifact
(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.
-
Constructor Details
-
DefaultArtifactResolver
@Inject public DefaultArtifactResolver(FileProcessor fileProcessor, RepositoryEventDispatcher repositoryEventDispatcher, VersionResolver versionResolver, UpdateCheckManager updateCheckManager, RepositoryConnectorProvider repositoryConnectorProvider, RemoteRepositoryManager remoteRepositoryManager, SyncContextFactory syncContextFactory, OfflineController offlineController, Map<String, ArtifactResolverPostProcessor> artifactResolverPostProcessors, RemoteRepositoryFilterManager remoteRepositoryFilterManager)
-
-
Method Details
-
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:
-