Interface ArtifactDescriptorReader


public interface ArtifactDescriptorReader
Provides information about an artifact that is relevant to transitive dependency resolution. Each artifact is expected to have an accompanying artifact descriptor that among others lists the direct dependencies of the artifact.
Provisional:
This type is provisional and can be changed, moved or removed without prior notice.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.resolution.ArtifactDescriptorResult
    readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
    Gets information about an artifact like its direct dependencies and potential relocations.
  • Method Details

    • readArtifactDescriptor

      org.eclipse.aether.resolution.ArtifactDescriptorResult readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorRequest request) throws org.eclipse.aether.resolution.ArtifactDescriptorException
      Gets information about an artifact like its direct dependencies and potential relocations. Implementations must respect the artifact descriptor policy of the session when dealing with certain error cases.
      Parameters:
      session - The repository session, must not be null.
      request - The descriptor request, must not be null
      Returns:
      The descriptor result, never null.
      Throws:
      org.eclipse.aether.resolution.ArtifactDescriptorException - If the artifact descriptor could not be read.
      See Also:
      • RepositorySystem.readArtifactDescriptor(RepositorySystemSession, ArtifactDescriptorRequest)