@Component(role=ArtifactInstaller.class) public class DefaultArtifactInstaller extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactInstaller
| Modifier and Type | Field and Description |
|---|---|
private LegacySupport |
legacySupport |
private org.eclipse.aether.RepositorySystem |
repoSystem |
ROLE| Constructor and Description |
|---|
DefaultArtifactInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
install(java.io.File source,
Artifact artifact,
ArtifactRepository localRepository)
Install an artifact from a particular file.
|
void |
install(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.
|
@Requirement private org.eclipse.aether.RepositorySystem repoSystem
@Requirement private LegacySupport legacySupport
@Deprecated
public void install(java.lang.String basedir,
java.lang.String finalName,
Artifact artifact,
ArtifactRepository localRepository)
throws ArtifactInstallationException
ArtifactInstallerinstall in interface ArtifactInstallerbasedir - 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(java.io.File source,
Artifact artifact,
ArtifactRepository localRepository)
throws ArtifactInstallationException
ArtifactInstallerinstall in interface ArtifactInstallersource - the file to installartifact - the artifact definitionlocalRepository - the local repository to install intoArtifactInstallationException - if an error occurred installing the artifact