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 820625a  finish add parameter to disable install/deploy skip detection
820625a is described below

commit 820625a2312ccf30e8daa14866458aea22bbcd65
Author: Hervé Boutemy <hbout...@apache.org>
AuthorDate: Sat Feb 13 18:22:45 2021 +0100

    finish add parameter to disable install/deploy skip detection
---
 .../maven/plugins/artifact/buildinfo/BuildinfoMojo.java       | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

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 08f5574..08f50b7 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
@@ -165,7 +165,7 @@ public class BuildinfoMojo
         if ( !mono )
         {
             // if module skips install and/or deploy
-            if ( detectSkip && PluginUtil.isSkip( project ) )
+            if ( isSkip( project ) )
             {
                 getLog().info( "Skipping buildinfo for module that skips 
install and/or deploy" );
                 return;
@@ -261,7 +261,7 @@ public class BuildinfoMojo
             {
                 for ( MavenProject project : reactorProjects )
                 {
-                    if ( !PluginUtil.isSkip( project ) )
+                    if ( !isSkip( project ) )
                     {
                         bi.printArtifacts( project );
                     }
@@ -491,11 +491,16 @@ public class BuildinfoMojo
         while ( i > 0 )
         {
             MavenProject project = reactorProjects.get( --i );
-            if ( !PluginUtil.isSkip( project ) )
+            if ( !isSkip( project ) )
             {
                 return project;
             }
         }
         return null;
     }
+
+    private boolean isSkip( MavenProject project )
+    {
+        return detectSkip && PluginUtil.isSkip( project );
+    }
 }

Reply via email to