org.eclipse.aether.impl

## Interface ArtifactResolver

- All Known Implementing Classes:
    DefaultArtifactResolver

      public interface ArtifactResolver

  Resolves artifacts, that is gets a local filesystem path to their binary contents.
  Restriction:
    This interface is not intended to be extended by clients.
  Restriction:
    This interface is not intended to be implemented by clients.
  Provisional:
    This type is provisional and can be changed, moved or removed without prior notice.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ArtifactResult` | `resolveArtifact(RepositorySystemSession session, ArtifactRequest request)` Resolves the path for an artifact.
    `List<ArtifactResult>` | `resolveArtifacts(RepositorySystemSession session, Collection<? extends ArtifactRequest> requests)` Resolves the paths for a collection of artifacts.

- - ### Method Detail

    - #### resolveArtifact

          ArtifactResult resolveArtifact(RepositorySystemSession session,
                                       ArtifactRequest request)
                                         throws ArtifactResolutionException

      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.
      Parameters:
        `session` - The repository session, must not be `null`.
        `request` - The resolution request, must not be `null`.
      Returns:
        The resolution result, never `null`.
      Throws:
        `ArtifactResolutionException` - If the artifact could not be resolved.
      See Also:
        `Artifact.getFile()`, `RepositorySystem.resolveArtifact(RepositorySystemSession, ArtifactRequest)`

    - #### resolveArtifacts

          List<ArtifactResult> resolveArtifacts(RepositorySystemSession session,
                                              Collection<? extends ArtifactRequest> requests)
                                                throws ArtifactResolutionException

      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.
      Parameters:
        `session` - The repository session, must not be `null`.
        `requests` - The resolution requests, must not be `null`.
      Returns:
        The resolution results (in request order), never `null`.
      Throws:
        `ArtifactResolutionException` - If any artifact could not be resolved.
      See Also:
        `Artifact.getFile()`, `RepositorySystem.resolveArtifacts(RepositorySystemSession, Collection)`

Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.