[MJAR-259] - Archiving to jar is very slow
o Upgraded maven-archiver to 3.4.0
o Upgraded plexus-archiver to 4.1.0
o Upgraded plexus-utils to 3.2.0
o Added maven-shared-utils 3.2.1 to override
the one which is used by file-management.
o Fixed IT's which relied on "Created-By" in MANIFEST.MF
Removed deprecated IMPLEMENTATION_VENDOR_ID in MANIFEST
diff --git a/pom.xml b/pom.xml
index 461636f..fa285d2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -75,8 +75,8 @@
</distributionManagement>
<properties>
- <mavenArchiverVersion>3.3.0</mavenArchiverVersion>
<mavenFileManagementVersion>3.0.0</mavenFileManagementVersion>
+ <mavenArchiverVersion>3.4.0</mavenArchiverVersion>
<mavenVersion>3.0</mavenVersion>
<javaVersion>7</javaVersion>
</properties>
@@ -118,16 +118,28 @@
! so we define it here explicit to make sure we get the
! correct version for plexus-archiver and plexus-utils.
-->
+ <!--
+ ! maven-shared-utils is pulled by file-management
+ ! Need to use a more recent version otherwise
+ ! the build will fail. This needed to be kept
+ ! here until a new version of file-management
+ ! has been made.
+ -->
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-shared-utils</artifactId>
+ <version>3.2.1</version>
+ </dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
- <version>3.7.0</version>
+ <version>4.1.0</version>
</dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>3.1.0</version>
- </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>3.2.0</version>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
diff --git a/src/it/MJAR-228/verify.bsh b/src/it/MJAR-228/verify.bsh
index 09eb0a2..f0aaa2c 100644
--- a/src/it/MJAR-228/verify.bsh
+++ b/src/it/MJAR-228/verify.bsh
@@ -45,12 +45,6 @@
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 ( !"myproject.HelloWorld".equals( manifest.get( Attributes.Name.MAIN_CLASS ) ) )
{
System.err.println( Attributes.Name.MAIN_CLASS.toString() + " not equals myproject.HelloWorld" );
diff --git a/src/it/manifest-content/verify.bsh b/src/it/manifest-content/verify.bsh
index 122bfa5..dfd1842 100644
--- a/src/it/manifest-content/verify.bsh
+++ b/src/it/manifest-content/verify.bsh
@@ -25,6 +25,7 @@
boolean result = true;
+
try
{
File target = new File( basedir, "target" );
@@ -45,13 +46,6 @@
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 ( !"manifest-content-it".equals( manifest.get( Attributes.Name.SPECIFICATION_TITLE ) ) )
{
System.err.println( Attributes.Name.SPECIFICATION_TITLE.toString() + " not equals manifest-content-it" );
@@ -84,12 +78,6 @@
return false;
}
- if ( !"org.apache.maven.plugins".equals( manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR_ID ) ) )
- {
- System.err.println( Attributes.Name.IMPLEMENTATION_VENDOR_ID.toString() + " not equals org.apache.maven.plugins" );
- return false;
- }
-
if ( !"jar plugin it".equals( manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR ) ) )
{
System.err.println( Attributes.Name.IMPLEMENTATION_VENDOR.toString() + " not equals jar plugin it" );