o This fixes the failing it0040 IT

Now someone might have some more insight here because this failure didn't crop up until yesterday.
  About 3 months ago maven-archiver was changed so that the client was responsible for setting
  the archiver implementation using:

  archiver.setArchiver( new JarArchiver() );

  But this code is something that I just added to the PackagingMojo.java file. Using -X says that
  version 2.0 of maven-archiver is being used so I'm not exactly sure what is going on here. An
  older version of maven-archiver set up its archiver internally so I suppose it might be possible
  that something older then 2.0 was being used but this IT should have broken long ago looking
  at the code in the PackagingMojo.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@367632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-01-10 15:05:10 +00:00
parent 5c17310148
commit 298b2a798f
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import org.apache.maven.archiver.MavenArchiveConfiguration;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.archiver.jar.JarArchiver;
import java.io.File;
@ -59,6 +60,8 @@ public class PackagingMojo
MavenArchiver archiver = new MavenArchiver();
archiver.setArchiver( new JarArchiver() );
archiver.setOutputFile( jarFile );
try