You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2021/02/03 23:44:20 UTC
[maven-artifact-plugin] branch master updated: add parameter to
disable install/deploy skip detection
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new ca9fc10 add parameter to disable install/deploy skip detection
ca9fc10 is described below
commit ca9fc101fbf746b889c094110c8d41bd333441f6
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu Feb 4 00:44:14 2021 +0100
add parameter to disable install/deploy skip detection
---
.../apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
index 929e8d7..08f5574 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/BuildinfoMojo.java
@@ -121,6 +121,12 @@ public class BuildinfoMojo
private boolean referenceCompareSave;
/**
+ * Detect projects/modules with install or deploy skipped: avoid taking fingerprinting.
+ */
+ @Parameter( property = "buildinfo.detect.skip", defaultValue = "true" )
+ private boolean detectSkip;
+
+ /**
* Used for attaching the buildinfo file in the project.
*/
@Component
@@ -159,7 +165,7 @@ public class BuildinfoMojo
if ( !mono )
{
// if module skips install and/or deploy
- if ( PluginUtil.isSkip( project ) )
+ if ( detectSkip && PluginUtil.isSkip( project ) )
{
getLog().info( "Skipping buildinfo for module that skips install and/or deploy" );
return;