Class DefaultArtifactResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.aether.resolution.ArtifactResult resolveArtifact​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactRequest request)
      Resolves the path for an artifact.
      java.util.List<org.eclipse.aether.resolution.ArtifactResult> resolveArtifacts​(org.eclipse.aether.RepositorySystemSession session, java.util.Collection<? extends org.eclipse.aether.resolution.ArtifactRequest> requests)
      Resolves the paths for a collection of artifacts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

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

        public java.util.List<org.eclipse.aether.resolution.ArtifactResult> resolveArtifacts​(org.eclipse.aether.RepositorySystemSession session,
                                                                                             java.util.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 interface ArtifactResolver
        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:
        org.eclipse.aether.resolution.ArtifactResolutionException - If any artifact could not be resolved.
        See Also:
        Artifact.getFile(), RepositorySystem.resolveArtifacts(RepositorySystemSession, Collection)