org.apache.maven.plugin.gpg
Class GpgSignAttachedMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.gpg.GpgSignAttachedMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class GpgSignAttachedMojo
extends org.apache.maven.plugin.AbstractMojo

Sign project artifact, the POM, and attached artifacts with GnuPG for deployment.

Author:
Jason van Zyl, Jason Dillon, Daniel Kulp

Field Summary
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  org.apache.maven.settings.Settings settings
           
static java.lang.String SIGNATURE_EXTENSION
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GpgSignAttachedMojo()
           
 
Method Summary
 void execute()
           
protected  java.lang.String getPassphrase()
           
protected  boolean isExcluded(java.lang.String name)
          Tests whether or not a name matches against at least one exclude pattern.
 
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

SIGNATURE_EXTENSION

public static final java.lang.String SIGNATURE_EXTENSION
See Also:
Constant Field Values

project

protected org.apache.maven.project.MavenProject project
The maven project.


settings

protected org.apache.maven.settings.Settings settings
Constructor Detail

GpgSignAttachedMojo

public GpgSignAttachedMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

isExcluded

protected boolean isExcluded(java.lang.String name)
Tests whether or not a name matches against at least one exclude pattern.

Parameters:
name - The name to match. Must not be null.
Returns:
true when the name matches against at least one exclude pattern, or false otherwise.

getPassphrase

protected java.lang.String getPassphrase()
                                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.