You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2019/02/23 11:20:00 UTC
[maven-scm-publish-plugin] branch master updated: [MSCMPUB-40] Add the ability to skip deployment Submitted by: Laurent VERDOÏA
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-scm-publish-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 1d088d7 [MSCMPUB-40] Add the ability to skip deployment Submitted by: Laurent VERDOÏA <lv...@lvjplabs.io>
new 8c36101 Merge pull request #4 from lvjp/MSCMPUB-40
1d088d7 is described below
commit 1d088d7cd0791dbdbc8bac4b5b8fc29d4adef275
Author: Laurent VERDOÏA <lv...@lvjplabs.io>
AuthorDate: Sat Feb 23 10:16:56 2019 +0100
[MSCMPUB-40] Add the ability to skip deployment
Submitted by: Laurent VERDOÏA <lv...@lvjplabs.io>
This permit skipping deployment on demand with user properties:
- scmpublish.skipDeploy
- maven.site.deploy.skip (alias)
---
.../maven/plugins/scmpublish/AbstractScmPublishMojo.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
index c696657..9d953cf 100644
--- a/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
+++ b/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
@@ -109,6 +109,12 @@ public abstract class AbstractScmPublishMojo
private boolean dryRun;
/**
+ * Set this to 'true' to skip site deployment.
+ */
+ @Parameter ( property = "scmpublish.skipDeploy", alias = "maven.site.deploy.skip", defaultValue = "false" )
+ private boolean skipDeployement;
+
+ /**
* Run add and delete commands, but leave the actually checkin for the user to run manually.
*/
@Parameter ( property = "scmpublish.skipCheckin" )
@@ -543,6 +549,12 @@ public abstract class AbstractScmPublishMojo
public void execute()
throws MojoExecutionException, MojoFailureException
{
+ if ( skipDeployement )
+ {
+ getLog().info( "scmpublish.skipDeploy = true: Skipping site deployment" );
+ return;
+ }
+
// setup the scm plugin with help from release plugin utilities
try
{