You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2006/01/10 16:05:36 UTC
svn commit: r367632 -
/maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java
Author: jvanzyl
Date: Tue Jan 10 07:05:10 2006
New Revision: 367632
URL: http://svn.apache.org/viewcvs?rev=367632&view=rev
Log:
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.
Modified:
maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java
Modified: maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java?rev=367632&r1=367631&r2=367632&view=diff
==============================================================================
--- maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java (original)
+++ maven/components/trunk/integration-tests/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/PackagingMojo.java Tue Jan 10 07:05:10 2006
@@ -21,6 +21,7 @@
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;
@@ -58,6 +59,8 @@
File jarFile = new File( outputDirectory, finalName + "-it.jar" );
MavenArchiver archiver = new MavenArchiver();
+
+ archiver.setArchiver( new JarArchiver() );
archiver.setOutputFile( jarFile );