You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/07/10 12:33:41 UTC

[maven-war-plugin] branch depre created (now f2aa3a3)

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a change to branch depre
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git.


      at f2aa3a3  fix deprecation

This branch includes the following new commits:

     new f2aa3a3  fix deprecation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-war-plugin] 01/01: fix deprecation

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch depre
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git

commit f2aa3a30996ba9376aab9c50d6b426c730bb49bd
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Jul 10 08:33:24 2020 -0400

    fix deprecation
---
 .../java/org/apache/maven/plugins/war/AbstractWarMojoTest.java | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/war/AbstractWarMojoTest.java b/src/test/java/org/apache/maven/plugins/war/AbstractWarMojoTest.java
index 46403f7..596fbb5 100644
--- a/src/test/java/org/apache/maven/plugins/war/AbstractWarMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/war/AbstractWarMojoTest.java
@@ -33,7 +33,6 @@ import org.apache.maven.plugins.war.stub.MavenProjectBasicStub;
 import org.apache.maven.plugins.war.stub.WarOverlayStub;
 import org.apache.maven.shared.filtering.MavenFileFilter;
 import org.codehaus.plexus.PlexusContainer;
-import org.codehaus.plexus.archiver.Archiver;
 import org.codehaus.plexus.archiver.ArchiverException;
 import org.codehaus.plexus.archiver.jar.JarArchiver;
 import org.codehaus.plexus.util.FileUtils;
@@ -305,16 +304,11 @@ public abstract class AbstractWarMojoTest
     {
         try
         {
-            // WarArchiver archiver = new WarArchiver();
-
-            Archiver archiver = new JarArchiver();
+            JarArchiver archiver = new JarArchiver();
 
             archiver.setDestFile( destinationFile );
             archiver.addDirectory( directory );
-
-            // archiver.setWebxml( new File(directory, "WEB-INF/web.xml"));
-
-            // create archive
+            
             archiver.createArchive();
 
         }