Interface ArtifactResolver

All Known Implementing Classes:
ArtifactResolverImpl

public interface ArtifactResolver
Artifact resolution interface. Used by the maven component repository implementations.
  • Field Details

  • Method Details

    • clear

      void clear()
      Drop the local repository cache
    • resolveDependencies

      Collection<ArtifactName> resolveDependencies(ArtifactName name, ArtifactResolver.Scope scope, Collection<ArtifactName> exclusions) throws Exception
      Resolve dependencies of an artifact taking into account scope and exclusions.
      Parameters:
      name - Artifact to resolve for. This will also be listed with the result
      scope - Scope to resolve for (implies recursiveness)
      exclusions - Exclusions to be omitted from the dependency graph
      Returns:
      A collection of artifact names making up the dependencies of the artifact to resolve for.
      Throws:
      Exception
    • download

      Collection<File> download(ArtifactName name, File out) throws Exception
      Download or provide from cache all artifact file resources in the specified output folder. The result may encompass more than a single artifact. If running in development mode for example, source attachments will be provided as well.
      Parameters:
      name - Artifact to retrieve
      out - Output folder.
      Returns:
      a collection of all files as provided to the output folder
      Throws:
      Exception