org.apache.maven.plugin.gpg
Class SignAndDeployFileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.gpg.AbstractGpgMojo
          extended by 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
 
Constructor Summary
SignAndDeployFileMojo()
           
 
Method Summary
protected  void deploy(File source, Artifact artifact, ArtifactRepository deploymentRepository, ArtifactRepository localRepository)
          Deploy an artifact from a particular file.
 void execute()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SignAndDeployFileMojo

public SignAndDeployFileMojo()
Method Detail

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 deploy
artifact - the artifact definition
deploymentRepository - the repository to deploy to
localRepository - 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.