org.apache.maven.plugin.deploy
Class AbstractDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.deploy.AbstractDeployMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- DeployFileMojo, DeployMojo
public abstract class AbstractDeployMojo
- extends AbstractMojo
- Version:
- $Id: AbstractDeployMojo.java 1137869 2011-06-21 06:18:10Z stephenc $
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
artifactFactory
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
- Component used to create an artifact.
- Is a Plexus component defined by:
updateReleaseInfo
protected boolean updateReleaseInfo
- Parameter used to update the metadata to make the artifact as release.
- Is defined by:
- expression:
- ${updateReleaseInfo}
- default-value:
- false
AbstractDeployMojo
public AbstractDeployMojo()
getDeployer
public org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()
setDeployer
public void setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)
getLocalRepository
public ArtifactRepository getLocalRepository()
setLocalRepository
public void setLocalRepository(ArtifactRepository localRepository)
deploy
protected void deploy(File source,
Artifact artifact,
ArtifactRepository deploymentRepository,
ArtifactRepository localRepository)
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 into
- Throws:
org.apache.maven.artifact.deployer.ArtifactDeploymentException
- if an error occurred deploying the artifact
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.