Package org.apache.maven.plugins.gpg
Class SignAndDeployFileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.gpg.AbstractGpgMojo
org.apache.maven.plugins.gpg.SignAndDeployFileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="sign-and-deploy-file",
requiresProject=false,
threadSafe=true)
public class SignAndDeployFileMojo
extends AbstractGpgMojo
Signs artifacts and deploys the artifacts and signatures in the remote repository.
- Since:
- 1.0-beta-4
- Author:
- Daniel Kulp
-
Field Summary
Fields inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojo
DEFAULT_ENV_MAVEN_GPG_FINGERPRINT, DEFAULT_ENV_MAVEN_GPG_KEY, DEFAULT_ENV_MAVEN_GPG_PASSPHRASE, session, settings
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojo
enforceBestPractices, execute, getPassphrase, newSigner
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
SignAndDeployFileMojo
public SignAndDeployFileMojo()
-
-
Method Details
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doExecute
in classAbstractGpgMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
deploy
protected void deploy(org.eclipse.aether.repository.RemoteRepository deploymentRepository, List<org.eclipse.aether.artifact.Artifact> artifacts) throws org.eclipse.aether.deployment.DeploymentException Deploy an artifact from a particular file.- Parameters:
deploymentRepository
- the repository to deploy toartifacts
- the artifacts definition- Throws:
org.eclipse.aether.deployment.DeploymentException
- if an error occurred deploying the artifact
-