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 2019/12/08 16:11:02 UTC

[maven-studies] branch maven-buildinfo-plugin updated: ignore pgp signatures

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch maven-buildinfo-plugin
in repository https://gitbox.apache.org/repos/asf/maven-studies.git


The following commit(s) were added to refs/heads/maven-buildinfo-plugin by this push:
     new a5e7ba0  ignore pgp signatures
a5e7ba0 is described below

commit a5e7ba0c563e4d94ba08d56fd0c4287f84ce9718
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Dec 8 17:10:59 2019 +0100

    ignore pgp signatures
---
 pom.xml                                              | 20 ++++++++++++++++++++
 .../org/apache/maven/plugins/buildinfo/SaveMojo.java |  7 ++++++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index e76a4c4..0b03588 100644
--- a/pom.xml
+++ b/pom.xml
@@ -146,5 +146,25 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>dev</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-buildinfo-plugin</artifactId>
+            <version>${project.version}</version>
+            <executions>
+              <execution>
+                <id>buildinfo</id>
+                <goals>
+                  <goal>save</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>
diff --git a/src/main/java/org/apache/maven/plugins/buildinfo/SaveMojo.java b/src/main/java/org/apache/maven/plugins/buildinfo/SaveMojo.java
index 890431c..e7083a0 100644
--- a/src/main/java/org/apache/maven/plugins/buildinfo/SaveMojo.java
+++ b/src/main/java/org/apache/maven/plugins/buildinfo/SaveMojo.java
@@ -117,7 +117,7 @@ public class SaveMojo
                 p.println();
                 p.println( "# build instructions" );
                 p.println( "build-tool=mvn" );
-                p.println( "# optional build setup url, as plugin parameter" );
+                //p.println( "# optional build setup url, as plugin parameter" );
                 p.println();
                 p.println( "# effective build environment information" );
                 p.println( "java.version=" + System.getProperty( "java.version" ) );
@@ -192,6 +192,11 @@ public class SaveMojo
 
         for ( Artifact attached : project.getAttachedArtifacts() )
         {
+            if ( attached.getType().endsWith( ".asc" ) )
+            {
+                // ignore pgp signatures
+                continue;
+            }
             printArtifact( p, n++, attached );
         }
     }