|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.kohsuke.maven.pgp.PgpMojo
public class PgpMojo
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 |
|---|
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
| Constructor Detail |
|---|
public PgpMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public org.bouncycastle.openpgp.PGPSecretKey loadSecretKey()
throws org.apache.maven.plugin.MojoExecutionException
secretkey, load the key pair.
org.apache.maven.plugin.MojoExecutionException
public String loadPassPhrase(org.bouncycastle.openpgp.PGPSecretKey key)
throws org.apache.maven.plugin.MojoExecutionException
passphrase, load the passphrase.
org.apache.maven.plugin.MojoExecutionException
protected void sign(org.kohsuke.maven.pgp.Signer signer,
org.apache.maven.artifact.Artifact a)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||