@@ -489,7 +489,8 @@ public void testDeprecatedCreateArchiveAPI()
489
489
assertTrue ( jarFile .exists () );
490
490
Attributes manifest = getJarFileManifest ( jarFile ).getMainAttributes ();
491
491
492
- assertEquals ( "Apache Maven" , manifest .get ( new Attributes .Name ( "Created-By" ) ) ); // no version number
492
+ // no version number
493
+ assertEquals ( "Maven Archiver" , manifest .get ( new Attributes .Name ( "Created-By" ) ) );
493
494
494
495
assertEquals ( "archiver test" , manifest .get ( Attributes .Name .SPECIFICATION_TITLE ) );
495
496
assertEquals ( "0.1" , manifest .get ( Attributes .Name .SPECIFICATION_VERSION ) );
@@ -540,7 +541,8 @@ public void testManifestEntries()
540
541
final Manifest jarFileManifest = getJarFileManifest ( jarFile );
541
542
Attributes manifest = jarFileManifest .getMainAttributes ();
542
543
543
- assertEquals ( "Apache Maven 3.0.4" , manifest .get ( new Attributes .Name ( "Created-By" ) ) );
544
+ // no version number
545
+ assertEquals ( "Maven Archiver" , manifest .get ( new Attributes .Name ( "Created-By" ) ) );
544
546
545
547
assertEquals ( session .getSystemProperties ().get ( "maven.build.version" ),
546
548
manifest .get ( new Attributes .Name ( "Build-Tool" ) ) );
@@ -602,30 +604,6 @@ public void testManifestWithInvalidAutomaticModuleNameThrowsOnCreateArchive()
602
604
}
603
605
}
604
606
605
- @ Test
606
- public void testCreatedByManifestEntryWithoutMavenVersion ()
607
- throws Exception
608
- {
609
- File jarFile = new File ( "target/test/dummy.jar" );
610
- JarArchiver jarArchiver = getCleanJarArchiver ( jarFile );
611
-
612
- MavenArchiver archiver = getMavenArchiver ( jarArchiver );
613
-
614
- MavenSession session = getDummySessionWithoutMavenVersion ();
615
- MavenProject project = getDummyProject ();
616
-
617
- MavenArchiveConfiguration config = new MavenArchiveConfiguration ();
618
- config .setForced ( true );
619
-
620
- archiver .createArchive ( session , project , config );
621
- assertTrue ( jarFile .exists () );
622
-
623
- final Manifest manifest = getJarFileManifest ( jarFile );
624
- Map <Object , Object > entries = manifest .getMainAttributes ();
625
-
626
- assertEquals ( "Apache Maven" , entries .get ( new Attributes .Name ( "Created-By" ) ) );
627
- }
628
-
629
607
/*
630
608
* Test to make sure that manifest sections are present in the manifest prior to the archive has been created.
631
609
*/
0 commit comments