org.apache.maven.plugin.gpg
Class GpgSignAttachedMojo

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.GpgSignAttachedMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class GpgSignAttachedMojo
extends AbstractGpgMojo

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

Author:
Jason van Zyl, Jason Dillon, Daniel Kulp
Is defined by the goal name:
sign
Is bound to the specified phase of the standard build lifecycle:
verify

Field Summary
protected  MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GpgSignAttachedMojo()
           
 
Method Summary
 void execute()
           
protected  boolean isExcluded(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

project

protected MavenProject project
The maven project.

Is defined by:
default-value:
${project}
Is readonly.
Is required.
Constructor Detail

GpgSignAttachedMojo

public GpgSignAttachedMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

isExcluded

protected boolean isExcluded(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.


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.