[maven-source-plugin] branch MSOURCES-120 updated: archive is Created-By: Maven Source Plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-source-plugin] branch MSOURCES-120 updated: archive is Created-By: Maven Source Plugin

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

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


The following commit(s) were added to refs/heads/MSOURCES-120 by this push:
     new f6b9c20  archive is Created-By: Maven Source Plugin
f6b9c20 is described below

commit f6b9c202306d7c412bd7be581ff8065b3d1ce7de
Author: Hervé Boutemy <[hidden email]>
AuthorDate: Sun Sep 8 16:59:35 2019 +0200

    archive is Created-By: Maven Source Plugin
---
 src/it/reproducible/pom.xml                                          | 5 -----
 .../java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java  | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/it/reproducible/pom.xml b/src/it/reproducible/pom.xml
index 76ca699..13a6af9 100644
--- a/src/it/reproducible/pom.xml
+++ b/src/it/reproducible/pom.xml
@@ -41,11 +41,6 @@
         <version>@project.version@</version>
         <configuration>
           <source-date-epoch>1566419331</source-date-epoch>
-          <archive>
-            <manifest>
-              <addDefaultEntries>false</addDefaultEntries>
-            </manifest>
-          </archive>
         </configuration>
       </plugin>
       <plugin>
diff --git a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
index 421114e..c90edac 100644
--- a/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/source/AbstractSourceJarMojo.java
@@ -422,6 +422,7 @@ public abstract class AbstractSourceJarMojo
     {
         MavenArchiver archiver = new MavenArchiver();
         archiver.setArchiver( jarArchiver );
+        archiver.setCreatedBy( "Maven Source Plugin", "org.apache.maven.plugins", "maven-source-plugin" );
 
         if ( project.getBuild() != null )
         {