Interface ArtifactInstaller


public interface ArtifactInstaller
Author:
Robert Scholte
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    install(org.apache.maven.project.ProjectBuildingRequest request, File localRepository, Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
     
    void
    install(org.apache.maven.project.ProjectBuildingRequest request, Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
     
  • Method Details

    • install

      void install(org.apache.maven.project.ProjectBuildingRequest request, Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException, IllegalArgumentException
      Parameters:
      request - ProjectBuildingRequest
      mavenArtifacts - Artifact (no null or empty collection allowed.)
      Throws:
      ArtifactInstallerException - in case of an error.
      IllegalArgumentException - in case request is null, mavenArtifacts is null or mavenArtifacts is empty (mavenArtifacts.isEmpty() == true).
    • install

      void install(org.apache.maven.project.ProjectBuildingRequest request, File localRepository, Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
      Parameters:
      request - ProjectBuildingRequest.
      localRepository - The location for the local repository.
      mavenArtifacts - Collection of MavenArtifacts
      Throws:
      ArtifactInstallerException - In case of an error which can be the a given artifact can not be found or the installation has failed.
      IllegalArgumentException - in case of parameter request is null or parameter localRepository is null or localRepository is not a directory or parameter mavenArtifacts is null or mavenArtifacts.isEmpty() is true.