Class ArtifactResolverImpl

java.lang.Object
com.zfabrik.impl.mvncr.ArtifactResolverImpl
All Implemented Interfaces:
ArtifactResolver

public class ArtifactResolverImpl extends Object implements ArtifactResolver
Implementation of ArtifactResolver.
  • Constructor Details

  • Method Details

    • clear

      public void clear()
      Description copied from interface: ArtifactResolver
      Drop the local repository cache
      Specified by:
      clear in interface ArtifactResolver
    • resolveDependencies

      public Collection<ArtifactName> resolveDependencies(ArtifactName name, ArtifactResolver.Scope scope, Collection<ArtifactName> exclusions) throws Exception
      Description copied from interface: ArtifactResolver
      Resolve dependencies of an artifact taking into account scope and exclusions.
      Specified by:
      resolveDependencies in interface ArtifactResolver
      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

      public Collection<File> download(ArtifactName name, File out) throws Exception
      Description copied from interface: ArtifactResolver
      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.
      Specified by:
      download in interface ArtifactResolver
      Parameters:
      name - Artifact to retrieve
      out - Output folder.
      Returns:
      a collection of all files as provided to the output folder
      Throws:
      Exception