# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/kec/temp/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: AbstractDependencyMojo.java --- AbstractDependencyMojo.java Base (BASE) +++ AbstractDependencyMojo.java Locally Modified (Based On LOCAL) @@ -198,10 +198,10 @@ } } - protected void unpack( File file, File location ) + protected void unpack( File file, File location, boolean defaultExcludes ) throws MojoExecutionException { - unpack( file, location, null, null ); + unpack( file, location, null, null, defaultExcludes); } /** @@ -214,7 +214,7 @@ * @param excludes Comma separated list of file patterns to exclude i.e. **/*.xml, * **/*.properties */ - protected void unpack( File file, File location, String includes, String excludes ) + protected void unpack( File file, File location, String includes, String excludes, boolean useDefaultExcludes) throws MojoExecutionException { try @@ -238,6 +238,8 @@ // MDEP-47 IncludeExcludeFileSelector[] selectors = new IncludeExcludeFileSelector[] { new IncludeExcludeFileSelector() }; + selectors[0].setUseDefaultExcludes(useDefaultExcludes); + if ( StringUtils.isNotEmpty( excludes ) ) { selectors[0].setExcludes( excludes.split( "," ) );