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
  • 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 class AbstractGpgMojo
      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