public abstract class AbstractDeployMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and 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 and Description |
---|
AbstractDeployMojo() |
Modifier and Type | Method and 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)
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) |
getLog, getPluginContext, setLog, setPluginContext
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected boolean updateReleaseInfo
public org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()
public void setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
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) throws org.apache.maven.artifact.deployer.ArtifactDeploymentException
source
- the file to deployartifact
- the artifact definitiondeploymentRepository
- the repository to deploy tolocalRepository
- the local repository to install intoorg.apache.maven.artifact.deployer.ArtifactDeploymentException
- if an error occurred deploying the artifactCopyright © 2004-2012 Apache Software Foundation. All Rights Reserved.