Package org.apache.maven.plugins.gpg
Class SignDeployedMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.gpg.AbstractGpgMojo
org.apache.maven.plugins.gpg.SignDeployedMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="sign-deployed",
requiresProject=false,
threadSafe=true)
public class SignDeployedMojo
extends AbstractGpgMojo
Resolves given artifacts from a given remote repository, signs them, and deploys the signatures next to signed
artifacts, and cleans up afterward. This mojo will use "own" local repository for all the operations to not
"pollute" user local repository, and also to be able to fully clean up (delete) after job done.
- Since:
- 3.2.3
-
Field Summary
Fields inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojo
DEFAULT_ENV_MAVEN_GPG_FINGERPRINT, DEFAULT_ENV_MAVEN_GPG_KEY, DEFAULT_ENV_MAVEN_GPG_PASSPHRASE, session, settings, settingsDecrypter
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection
<org.eclipse.aether.artifact.Artifact> collectArtifacts
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository remoteRepository) Returns a collection of remotely deployed artifacts that needs to be signed and have signatures deployed next to them.protected void
Methods inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojo
createSigner, enforceBestPractices, execute, getPassphrase, newSigner
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
SignDeployedMojo
public SignDeployedMojo()
-
-
Method Details
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
doExecute
in classAbstractGpgMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
collectArtifacts
protected Collection<org.eclipse.aether.artifact.Artifact> collectArtifacts(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository remoteRepository) throws IOException Returns a collection of remotely deployed artifacts that needs to be signed and have signatures deployed next to them.- Throws:
IOException
-