Class SignAndDeployFileMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="sign-and-deploy-file",
          requiresProject=false,
          threadSafe=true)
    public class SignAndDeployFileMojo
    extends AbstractGpgMojo
    Signs artifacts and installs the artifact in the remote repository.
    Since:
    1.0-beta-4
    Author:
    Daniel Kulp
    • Field Detail

      • updateReleaseInfo

        @Parameter(property="updateReleaseInfo",
                   defaultValue="false")
        protected boolean updateReleaseInfo
        Parameter used to update the metadata to make the artifact as release.
        Since:
        1.3
    • Constructor Detail

      • SignAndDeployFileMojo

        public SignAndDeployFileMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • deploy

        protected void deploy​(org.apache.maven.artifact.Artifact artifact,
                              org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository)
                       throws org.apache.maven.shared.transfer.artifact.deploy.ArtifactDeployerException
        Deploy an artifact from a particular file.
        Parameters:
        artifact - the artifact definition
        deploymentRepository - the repository to deploy to
        Throws:
        org.apache.maven.shared.transfer.artifact.deploy.ArtifactDeployerException - if an error occurred deploying the artifact
      • createDeploymentArtifactRepository

        protected org.apache.maven.artifact.repository.ArtifactRepository createDeploymentArtifactRepository​(String id,
                                                                                                             String url)