@Component(role=ArtifactInstaller.class) public class DefaultArtifactInstaller extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactInstaller
ROLE
Constructor and Description |
---|
DefaultArtifactInstaller() |
Modifier and Type | Method and Description |
---|---|
void |
install(File source,
Artifact artifact,
ArtifactRepository localRepository)
Install an artifact from a particular file.
|
void |
install(String basedir,
String finalName,
Artifact artifact,
ArtifactRepository localRepository)
Deprecated.
we want to use the artifact method only, and ensure artifact.file is set correctly.
|
@Deprecated public void install(String basedir, String finalName, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationException
ArtifactInstaller
install
in interface ArtifactInstaller
basedir
- the directory where the artifact is storedfinalName
- the name of the artifact sans extensionartifact
- the artifact definitionlocalRepository
- the local repository to install intoArtifactInstallationException
- if an error occurred installing the artifactpublic void install(File source, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationException
ArtifactInstaller
install
in interface ArtifactInstaller
source
- the file to installartifact
- the artifact definitionlocalRepository
- the local repository to install intoArtifactInstallationException
- if an error occurred installing the artifactCopyright © 2001–2023 The Apache Software Foundation. All rights reserved.