Class DefaultArtifactInstaller

java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.artifact.installer.DefaultArtifactInstaller
All Implemented Interfaces:
ArtifactInstaller, org.codehaus.plexus.logging.LogEnabled

@Component(role=ArtifactInstaller.class) public class DefaultArtifactInstaller extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactInstaller
Author:
Jason van Zyl
  • Field Summary

    Fields inherited from interface org.apache.maven.artifact.installer.ArtifactInstaller

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    install(File source, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
    Install an artifact from a particular file.
    void
    install(String basedir, String finalName, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
    Deprecated.
    we want to use the artifact method only, and ensure artifact.file is set correctly.

    Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

    enableLogging, getLogger, setupLogger, setupLogger, setupLogger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultArtifactInstaller

      public DefaultArtifactInstaller()
  • Method Details

    • install

      @Deprecated public void install(String basedir, String finalName, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository) throws ArtifactInstallationException
      Deprecated.
      we want to use the artifact method only, and ensure artifact.file is set correctly.
      Description copied from interface: ArtifactInstaller
      Install an artifact from a particular directory. The artifact handler is used to determine the filename of the source file.
      Specified by:
      install in interface ArtifactInstaller
      Parameters:
      basedir - the directory where the artifact is stored
      finalName - the name of the artifact sans extension
      artifact - the artifact definition
      localRepository - the local repository to install into
      Throws:
      ArtifactInstallationException - if an error occurred installing the artifact
    • install

      public void install(File source, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository) throws ArtifactInstallationException
      Description copied from interface: ArtifactInstaller
      Install an artifact from a particular file.
      Specified by:
      install in interface ArtifactInstaller
      Parameters:
      source - the file to install
      artifact - the artifact definition
      localRepository - the local repository to install into
      Throws:
      ArtifactInstallationException - if an error occurred installing the artifact