diff --git a/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java index 6fa2023566..70e430a408 100644 --- a/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java +++ b/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java @@ -25,6 +25,7 @@ import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.io.IOException; +import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Set; @@ -153,7 +154,7 @@ public abstract class AbstractWarMojo */ protected String[] getExcludes() { - List excludeList = FileUtils.getDefaultExcludesAsList(); + List excludeList = new ArrayList( FileUtils.getDefaultExcludesAsList() ); if ( warSourceExcludes != null && !"".equals( warSourceExcludes ) ) { excludeList.add( warSourceExcludes );