maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject svn commit: r1642463 - /maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
Date Sat, 29 Nov 2014 18:37:28 GMT
Author: khmarbaise
Date: Sat Nov 29 18:37:27 2014
New Revision: 1642463

URL: http://svn.apache.org/r1642463
Log:
[MWAR-339] Upgrade plexus-archiver to 2.9
 - Upgraded plexus-io to 2.4
 - Fixed the usage of ignoring web xml option
   using setExpectWebXml instead of setIgnoreWebxml which
   is deprecated.

Modified:
    maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java

Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java?rev=1642463&r1=1642462&r2=1642463&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
(original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java
Sat Nov 29 18:37:27 2014
@@ -48,15 +48,9 @@ import java.util.Arrays;
  * @author <a href="evenisse@apache.org">Emmanuel Venisse</a>
  * @version $Id$
  */
-/**
- * @author kama
- *
- */
-@Mojo( 
-    name = "war", 
-    defaultPhase = LifecyclePhase.PACKAGE, 
-    threadSafe = true, 
-    requiresDependencyResolution = ResolutionScope.RUNTIME )
+// CHECKSTYLE_OFF: LineLength
+@Mojo( name = "war", defaultPhase = LifecyclePhase.PACKAGE, threadSafe = true, requiresDependencyResolution
= ResolutionScope.RUNTIME )
+//CHECKSTYLE_ON: LineLength
 public class WarMojo
     extends AbstractWarMojo
 {
@@ -210,8 +204,8 @@ public class WarMojo
      * @throws MojoFailureException if a fatal exception occurred
      */
     private void performPackaging( File warFile )
-        throws IOException, ManifestException, DependencyResolutionRequiredException,
-        MojoExecutionException, MojoFailureException
+        throws IOException, ManifestException, DependencyResolutionRequiredException, MojoExecutionException,
+        MojoFailureException
     {
         getLog().info( "Packaging webapp" );
 
@@ -243,8 +237,7 @@ public class WarMojo
         if ( !failOnMissingWebXml )
         {
             getLog().debug( "Build won't fail if web.xml file is missing." );
-            // The flag is wrong in plexus-archiver so it will need to be fixed at some point
-            warArchiver.setIgnoreWebxml( false );
+            warArchiver.setExpectWebXml( false );
         }
 
         // create archive
@@ -295,7 +288,7 @@ public class WarMojo
     /**
      * @param basedir The basedir
      * @param finalName The finalName
-     * @param classifier The classifier. 
+     * @param classifier The classifier.
      * @param type The type.
      * @return {@link File}
      */
@@ -403,7 +396,7 @@ public class WarMojo
     }
 
     /**
-     * @param outputDirectory  {@link #outputDirectory}
+     * @param outputDirectory {@link #outputDirectory}
      */
     public void setOutputDirectory( String outputDirectory )
     {



Mime
View raw message