Class DefaultArtifactDeployer
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.artifact.deployer.DefaultArtifactDeployer
-
- All Implemented Interfaces:
ArtifactDeployer,org.codehaus.plexus.logging.LogEnabled
public class DefaultArtifactDeployer extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArtifactDeployer
-
-
Field Summary
Fields Modifier and Type Field Description private RepositoryMetadataManagerrepositoryMetadataManagerprivate ArtifactTransformationManagertransformationManagerprivate WagonManagerwagonManager-
Fields inherited from interface org.apache.maven.artifact.deployer.ArtifactDeployer
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddeploy(java.io.File source, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository)Deploy an artifact from a particular file.voiddeploy(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.
-
-
-
Field Detail
-
wagonManager
private WagonManager wagonManager
-
transformationManager
private ArtifactTransformationManager transformationManager
-
repositoryMetadataManager
private RepositoryMetadataManager repositoryMetadataManager
-
-
Method Detail
-
deploy
public void deploy(java.lang.String basedir, java.lang.String finalName, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository) throws ArtifactDeploymentExceptionDeprecated.we want to use the artifact method only, and ensure artifact.file is set correctly.Description copied from interface:ArtifactDeployerDeploy an artifact from a particular directory. The artifact handler is used to determine the filename of the source file.- Specified by:
deployin interfaceArtifactDeployer- Parameters:
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 into- Throws:
ArtifactDeploymentException- if an error occurred deploying the artifact
-
deploy
public void deploy(java.io.File source, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository) throws ArtifactDeploymentExceptionDescription copied from interface:ArtifactDeployerDeploy an artifact from a particular file.- Specified by:
deployin interfaceArtifactDeployer- Parameters:
source- the file to deployartifact- the artifact definitiondeploymentRepository- the repository to deploy tolocalRepository- the local repository to install into- Throws:
ArtifactDeploymentException- if an error occurred deploying the artifact
-
-