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 2020/01/18 18:29:12 UTC

[maven-source-plugin] branch master updated: [MSOURCES-126] delete non-reproducible generated META-INF/NOTICE

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-source-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 85dd30a  [MSOURCES-126] delete non-reproducible generated META-INF/NOTICE
85dd30a is described below

commit 85dd30a1cfc297a827dc7a778252c3c9f90f8ea6
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Jan 18 19:29:08 2020 +0100

    [MSOURCES-126] delete non-reproducible generated META-INF/NOTICE
---
 src/it/reproducible/invoker.properties |  2 +-
 src/it/reproducible/pom.xml            | 10 ++++++++++
 src/it/reproducible/verify.groovy      |  2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/it/reproducible/invoker.properties b/src/it/reproducible/invoker.properties
index 19c0b8c..282ff67 100644
--- a/src/it/reproducible/invoker.properties
+++ b/src/it/reproducible/invoker.properties
@@ -15,4 +15,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-invoker.goals=remote-resources:process source:jar deploy:deploy
+invoker.goals=remote-resources:process antrun:run source:jar deploy:deploy
diff --git a/src/it/reproducible/pom.xml b/src/it/reproducible/pom.xml
index f85ea2e..62ea6d8 100644
--- a/src/it/reproducible/pom.xml
+++ b/src/it/reproducible/pom.xml
@@ -73,6 +73,16 @@
           </resourceBundles>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.8</version>
+        <configuration>
+          <target>
+            <delete file="target/maven-shared-archive-resources/META-INF/NOTICE"/> <!-- contains current year, not reproducible -->
+          </target>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
diff --git a/src/it/reproducible/verify.groovy b/src/it/reproducible/verify.groovy
index 54ebe23..19806dd 100644
--- a/src/it/reproducible/verify.groovy
+++ b/src/it/reproducible/verify.groovy
@@ -72,4 +72,4 @@ zipFile.close();
 String buf = r.toString()
 println buf
 
-assert buf.startsWith( "reproducible-1.0-sources.jar sha1 = 3a3687b063cfc164fbbccd1b9573b4232f540e8a" )
+assert buf.startsWith( "reproducible-1.0-sources.jar sha1 = 450428f14d590dadc0af38826b8154f8c31b24ca" )