public abstract class AbstractDeployMojo extends 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,
Artifact artifact,
ArtifactRepository deploymentRepository,
ArtifactRepository localRepository,
int retryFailedDeploymentCount)
Deploy an artifact from a particular file.
|
org.apache.maven.artifact.deployer.ArtifactDeployer |
getDeployer() |
ArtifactRepository |
getLocalRepository() |
void |
setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer) |
void |
setLocalRepository(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 ArtifactRepository getLocalRepository()
public void setLocalRepository(ArtifactRepository localRepository)
protected void deploy(File source, Artifact artifact, ArtifactRepository deploymentRepository, 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.