public class DefaultArtifactDeployer extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactDeployer
Modifier and Type | Field and Description |
---|---|
private RepositoryMetadataManager |
repositoryMetadataManager |
private ArtifactTransformationManager |
transformationManager |
private WagonManager |
wagonManager |
ROLE
Constructor and Description |
---|
DefaultArtifactDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(java.io.File source,
Artifact artifact,
ArtifactRepository deploymentRepository,
ArtifactRepository localRepository)
Deploy an artifact from a particular file.
|
void |
deploy(java.lang.String basedir,
java.lang.String finalName,
Artifact artifact,
ArtifactRepository deploymentRepository,
ArtifactRepository localRepository)
Deprecated.
we want to use the artifact method only, and ensure artifact.file is set correctly.
|
private WagonManager wagonManager
private ArtifactTransformationManager transformationManager
private RepositoryMetadataManager repositoryMetadataManager
public void deploy(java.lang.String basedir, java.lang.String finalName, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository) throws ArtifactDeploymentException
ArtifactDeployer
deploy
in interface ArtifactDeployer
basedir
- the directory where the artifact is storedfinalName
- the name of the artifact sans extensionartifact
- the artifact definitiondeploymentRepository
- the repository to deploy tolocalRepository
- the local repository to install intoArtifactDeploymentException
- if an error occurred deploying the artifactpublic void deploy(java.io.File source, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository) throws ArtifactDeploymentException
ArtifactDeployer
deploy
in interface ArtifactDeployer
source
- the file to deployartifact
- the artifact definitiondeploymentRepository
- the repository to deploy tolocalRepository
- the local repository to install intoArtifactDeploymentException
- if an error occurred deploying the artifact