org.apache.maven.plugin.gpg
Class SignAndDeployFileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.gpg.AbstractGpgMojo
org.apache.maven.plugin.gpg.SignAndDeployFileMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class SignAndDeployFileMojo
- extends AbstractGpgMojo
Signs artifacts and installs the artifact in the remote repository.
- Since:
- 1.0-beta-4
- Author:
- Daniel Kulp
- Is defined by the goal name:
- sign-and-deploy-file
- Requires a Maven project to run:
- false
Field Summary |
protected boolean |
updateReleaseInfo
Parameter used to update the metadata to make the artifact as release. |
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 |
updateReleaseInfo
protected boolean updateReleaseInfo
- Parameter used to update the metadata to make the artifact as release.
- Since:
- 1.3
- Is defined by:
- expression:
- ${updateReleaseInfo}
- default-value:
- false
SignAndDeployFileMojo
public SignAndDeployFileMojo()
execute
public void execute()
throws MojoExecutionException,
MojoFailureException
- Throws:
MojoExecutionException
MojoFailureException
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 © 2002-2011 The Apache Software Foundation. All Rights Reserved.