Package org.apache.maven.plugin.deploy
Class AbstractDeployMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugin.deploy.AbstractDeployMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
DeployFileMojo
,DeployMojo
public abstract class AbstractDeployMojo extends org.apache.maven.plugin.AbstractMojo
- Version:
- $Id: AbstractDeployMojo.java 1531347 2013-10-11 16:38:02Z rfscholte $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.factory.ArtifactFactory
artifactFactory
Component used to create an artifact.protected boolean
updateReleaseInfo
Parameter used to update the metadata to make the artifact as release.
-
Constructor Summary
Constructors Constructor Description AbstractDeployMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deploy(File source, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, org.apache.maven.artifact.repository.ArtifactRepository localRepository, int retryFailedDeploymentCount)
Deploy an artifact from a particular file.org.apache.maven.artifact.deployer.ArtifactDeployer
getDeployer()
org.apache.maven.artifact.repository.ArtifactRepository
getLocalRepository()
void
setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)
void
setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
artifactFactory
@Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Component used to create an artifact.
-
updateReleaseInfo
@Parameter(property="updateReleaseInfo", defaultValue="false") protected boolean updateReleaseInfo
Parameter used to update the metadata to make the artifact as release.
-
-
Method Detail
-
getDeployer
public org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()
-
setDeployer
public void setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)
-
getLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
-
setLocalRepository
public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
-
deploy
protected void deploy(File source, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, org.apache.maven.artifact.repository.ArtifactRepository localRepository, int retryFailedDeploymentCount) throws org.apache.maven.artifact.deployer.ArtifactDeploymentException
Deploy an artifact from a particular file.- Parameters:
source
- the file to deployartifact
- the artifact definitiondeploymentRepository
- the repository to deploy tolocalRepository
- the local repository to install intoretryFailedDeploymentCount
- TODO- Throws:
org.apache.maven.artifact.deployer.ArtifactDeploymentException
- if an error occurred deploying the artifact
-
-