Package org.apache.maven.plugins.gpg
Class SignAndDeployFileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.gpg.AbstractGpgMojo
-
- org.apache.maven.plugins.gpg.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 AbstractGpgMojoSigns artifacts and installs the artifact in the remote repository.- Since:
- 1.0-beta-4
- Author:
- Daniel Kulp
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanupdateReleaseInfoParameter used to update the metadata to make the artifact as release.
-
Constructor Summary
Constructors Constructor Description SignAndDeployFileMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.maven.artifact.repository.ArtifactRepositorycreateDeploymentArtifactRepository(String id, String url)protected voiddeploy(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository)Deploy an artifact from a particular file.voidexecute()
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.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.ArtifactDeployerExceptionDeploy an artifact from a particular file.- Parameters:
artifact- the artifact definitiondeploymentRepository- the repository to deploy to- Throws:
org.apache.maven.shared.transfer.artifact.deploy.ArtifactDeployerException- if an error occurred deploying the artifact
-
-