Index: src/it/manifest-classpath/pom.xml =================================================================== --- src/it/manifest-classpath/pom.xml (revision 1233851) +++ src/it/manifest-classpath/pom.xml (working copy) @@ -1,64 +0,0 @@ - - - - - - 4.0.0 - - org.apache.maven.its.ejb.mc - test - 1.0 - ejb - - Integration Test - - Test the generation of the Class-Path attribute for the MANIFEST.MF (MEJB-46). - - - - UTF-8 - - - - - junit - junit - 3.8.2 - - - - - - - org.apache.maven.plugins - maven-ejb-plugin - @project.version@ - - 3.0 - - - true - - - - - - - Index: src/it/manifest-classpath/verify.bsh =================================================================== --- src/it/manifest-classpath/verify.bsh (revision 1233851) +++ src/it/manifest-classpath/verify.bsh (working copy) @@ -1,22 +0,0 @@ -import java.io.*; -import java.util.*; -import java.util.jar.*; -import java.util.regex.*; - -File jarFile = new File( basedir, "target/test-1.0.jar" ); -System.out.println( "Checking for existence of " + jarFile ); -if ( !jarFile.isFile() ) -{ - throw new FileNotFoundException( "Missing " + jarFile ); -} - -JarFile jar = new JarFile( jarFile ); - -Manifest mf = jar.getManifest(); -String classpath = mf.getMainAttributes().getValue( Attributes.Name.CLASS_PATH ); -if ( classpath == null || classpath.indexOf( "junit-3.8.2.jar" ) < 0 ) -{ - throw new IllegalStateException( "Bad Class-Path " + classpath ); -} - -jar.close(); Index: src/it/manifest-content/verify.bsh =================================================================== --- src/it/manifest-content/verify.bsh (revision 1233851) +++ src/it/manifest-content/verify.bsh (working copy) @@ -12,8 +12,14 @@ JarFile jar = new JarFile( jarFile ); -Manifest mf = jar.getManifest(); -String classpath = mf.getMainAttributes().getValue( Attributes.Name.CLASS_PATH ); +Attributes manifest = jar.getManifest().getMainAttributes(); + +if ( !manifest.getValue( new Attributes.Name( "Created-By" ) ).startsWith( "Apache Maven" ) ) +{ + throw new IllegalStateException( "Created-By not equals Apache Maven" ); +} + +String classpath = manifest.getValue( Attributes.Name.CLASS_PATH ); if ( classpath == null || classpath.indexOf( "junit-3.8.2.jar" ) < 0 ) { throw new IllegalStateException( "Bad Class-Path " + classpath ); Index: src/main/java/org/apache/maven/plugin/ejb/EjbMojo.java =================================================================== --- src/main/java/org/apache/maven/plugin/ejb/EjbMojo.java (revision 1233851) +++ src/main/java/org/apache/maven/plugin/ejb/EjbMojo.java (working copy) @@ -324,7 +324,7 @@ } // create archive - archiver.createArchive( project, archive ); + archiver.createArchive( session, project, archive ); } catch ( ArchiverException e ) { @@ -393,7 +393,7 @@ clientArchiver.getArchiver().addDirectory( outputDirectory, includes, excludes ); // create archive - clientArchiver.createArchive( project, archive ); + clientArchiver.createArchive( session, project, archive ); } catch ( ArchiverException e ) Index: pom.xml =================================================================== --- pom.xml (revision 1233851) +++ pom.xml (working copy) @@ -73,7 +73,7 @@ org.apache.maven maven-archiver - 2.4.1 + 2.5-SNAPSHOT org.codehaus.plexus @@ -89,12 +89,12 @@ org.codehaus.plexus plexus-utils - 2.0.5 + 3.0 org.codehaus.plexus plexus-archiver - 1.0 + 2.1 org.codehaus.plexus