org.kohsuke.maven.pgp
Class PgpMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.kohsuke.maven.pgp.PgpMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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

Signs the artifacts.


Field Summary
 org.codehaus.plexus.PlexusContainer container
           
 String passphrase
          String that indicates where to retrieve the secret key pass phrase from.
 org.apache.maven.project.MavenProject project
           
 org.apache.maven.project.MavenProjectHelper projectHelper
           
 String secretkey
          How to retrieve the secret key?
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PgpMojo()
           
 
Method Summary
 void execute()
           
 String loadPassPhrase(org.bouncycastle.openpgp.PGPSecretKey key)
          From passphrase, load the passphrase.
 org.bouncycastle.openpgp.PGPSecretKey loadSecretKey()
          From secretkey, load the key pair.
protected  void sign(org.kohsuke.maven.pgp.Signer signer, org.apache.maven.artifact.Artifact a)
          Sign and attach the signaature to the build.
 
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

secretkey

public String secretkey
How to retrieve the secret key?


passphrase

public String passphrase
String that indicates where to retrieve the secret key pass phrase from.


project

public org.apache.maven.project.MavenProject project

projectHelper

public org.apache.maven.project.MavenProjectHelper projectHelper

container

public org.codehaus.plexus.PlexusContainer container
Constructor Detail

PgpMojo

public PgpMojo()
Method Detail

execute

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

loadSecretKey

public org.bouncycastle.openpgp.PGPSecretKey loadSecretKey()
                                                    throws org.apache.maven.plugin.MojoExecutionException
From secretkey, load the key pair.

Throws:
org.apache.maven.plugin.MojoExecutionException

loadPassPhrase

public String loadPassPhrase(org.bouncycastle.openpgp.PGPSecretKey key)
                      throws org.apache.maven.plugin.MojoExecutionException
From passphrase, load the passphrase.

Throws:
org.apache.maven.plugin.MojoExecutionException

sign

protected void sign(org.kohsuke.maven.pgp.Signer signer,
                    org.apache.maven.artifact.Artifact a)
             throws org.apache.maven.plugin.MojoExecutionException
Sign and attach the signaature to the build.

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.