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
-
-
Field Summary
Fields Modifier and Type Field Description private LegacySupportlegacySupportprivate org.eclipse.aether.RepositorySystemrepoSystem-
Fields inherited from interface org.apache.maven.artifact.installer.ArtifactInstaller
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactInstaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidinstall(java.io.File source, Artifact artifact, ArtifactRepository localRepository)Install an artifact from a particular file.voidinstall(java.lang.String basedir, java.lang.String finalName, Artifact artifact, ArtifactRepository localRepository)Deprecated.we want to use the artifact method only, and ensure artifact.file is set correctly.
-
-
-
Field Detail
-
repoSystem
@Requirement private org.eclipse.aether.RepositorySystem repoSystem
-
legacySupport
@Requirement private LegacySupport legacySupport
-
-
Method Detail
-
install
@Deprecated public void install(java.lang.String basedir, java.lang.String finalName, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationExceptionDeprecated.we want to use the artifact method only, and ensure artifact.file is set correctly.Description copied from interface:ArtifactInstallerInstall an artifact from a particular directory. The artifact handler is used to determine the filename of the source file.- Specified by:
installin interfaceArtifactInstaller- Parameters:
basedir- the directory where the artifact is storedfinalName- the name of the artifact sans extensionartifact- the artifact definitionlocalRepository- the local repository to install into- Throws:
ArtifactInstallationException- if an error occurred installing the artifact
-
install
public void install(java.io.File source, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationExceptionDescription copied from interface:ArtifactInstallerInstall an artifact from a particular file.- Specified by:
installin interfaceArtifactInstaller- Parameters:
source- the file to installartifact- the artifact definitionlocalRepository- the local repository to install into- Throws:
ArtifactInstallationException- if an error occurred installing the artifact
-
-