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,
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) |
getLog, getPluginContext, setLog, setPluginContext@Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
@Parameter(property="updateReleaseInfo",
defaultValue="false")
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, int retryFailedDeploymentCount) 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 intoretryFailedDeploymentCount - TODOorg.apache.maven.artifact.deployer.ArtifactDeploymentException - if an error occurred deploying the artifactCopyright © 2004–2014 The Apache Software Foundation. All rights reserved.