public class PgpMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
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?
|
| Constructor and Description |
|---|
PgpMojo() |
| Modifier and Type | Method and Description |
|---|---|
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 signature to the build.
|
public String secretkey
public String passphrase
public org.apache.maven.project.MavenProject project
public org.apache.maven.project.MavenProjectHelper projectHelper
public org.codehaus.plexus.PlexusContainer container
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic org.bouncycastle.openpgp.PGPSecretKey loadSecretKey()
throws org.apache.maven.plugin.MojoExecutionException
secretkey, load the key pair.org.apache.maven.plugin.MojoExecutionExceptionpublic String loadPassPhrase(org.bouncycastle.openpgp.PGPSecretKey key) throws org.apache.maven.plugin.MojoExecutionException
passphrase, load the passphrase.org.apache.maven.plugin.MojoExecutionExceptionprotected void sign(org.kohsuke.maven.pgp.Signer signer,
org.apache.maven.artifact.Artifact a)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2014. All Rights Reserved.