You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2019/05/11 13:10:10 UTC

[maven-war-plugin] 01/01: [MWAR-424] - Upgrade maven-archiver to 3.4.0 o Fixed IT's which relied on "Created-By" in MANIFEST.MF Removed deprecated IMPLEMENTATION_VENDOR_ID in MANIFEST

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

khmarbaise pushed a commit to branch MWAR-424
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git

commit 95131f4df30e1401a83f2fd28cac885d0b269274
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sat May 11 15:09:20 2019 +0200

    [MWAR-424] - Upgrade maven-archiver to 3.4.0
     o Fixed IT's which relied on "Created-By" in MANIFEST.MF
       Removed deprecated IMPLEMENTATION_VENDOR_ID in MANIFEST
---
 pom.xml                            |  2 +-
 src/it/manifest-content/verify.bsh | 13 -------------
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/pom.xml b/pom.xml
index 2ec8c48..749c1e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@
   </distributionManagement>
 
   <properties>
-    <mavenArchiverVersion>3.2.0</mavenArchiverVersion>
+    <mavenArchiverVersion>3.4.0</mavenArchiverVersion>
     <mavenFilteringVersion>3.1.1</mavenFilteringVersion>
     <mavenVersion>3.0</mavenVersion>
     <javaVersion>7</javaVersion>
diff --git a/src/it/manifest-content/verify.bsh b/src/it/manifest-content/verify.bsh
index d369f8d..8980a6f 100644
--- a/src/it/manifest-content/verify.bsh
+++ b/src/it/manifest-content/verify.bsh
@@ -45,12 +45,6 @@ try
 
     Attributes manifest = jar.getManifest().getMainAttributes();
 
-    if ( !manifest.getValue( new Attributes.Name( "Created-By" ) ).startsWith( "Apache Maven" ) )
-    {
-        System.err.println( "Created-By not equals Apache Maven" );
-        return false;
-    }
-
     if ( !"Maven War Manifest Content Test".equals( manifest.get( Attributes.Name.SPECIFICATION_TITLE ) ) )
     {
         System.err.println( "Incorrect '" + Attributes.Name.SPECIFICATION_TITLE.toString() + "' manifest entry: " +
@@ -86,13 +80,6 @@ try
         return false;
     }
 
-    if ( !"test".equals( manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR_ID ) ) )
-    {
-        System.err.println( "Incorrect '" + Attributes.Name.IMPLEMENTATION_VENDOR_ID.toString() + "' manifest entry: " +
-            manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR_ID ) );
-        return false;
-    }
-
     if ( !"war plugin it".equals( manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR ) ) )
     {
         System.err.println( "Incorrect '" + Attributes.Name.IMPLEMENTATION_VENDOR.toString() + "' manifest entry: " +