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 SummaryFields inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojoDEFAULT_ENV_MAVEN_GPG_FINGERPRINT, DEFAULT_ENV_MAVEN_GPG_KEY, DEFAULT_ENV_MAVEN_GPG_PASSPHRASE, session, settings, settingsDecrypterFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsConstructorDescriptionSignDeployedMojo(org.eclipse.aether.RepositorySystem repositorySystem, Map<String, ArtifactCollectorSPI> artifactCollectors) 
- 
Method SummaryModifier 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 voidMethods inherited from class org.apache.maven.plugins.gpg.AbstractGpgMojocreateSigner, enforceBestPractices, execute, getPassphrase, newSignerMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details- 
SignDeployedMojo@Inject public SignDeployedMojo(org.eclipse.aether.RepositorySystem repositorySystem, Map<String, ArtifactCollectorSPI> artifactCollectors) 
 
- 
- 
Method Details- 
doExecuteprotected void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
- doExecutein class- AbstractGpgMojo
- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
- 
collectArtifactsprotected 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
 
 
-