From 620a5b97a4cad9e2166df38d4da4de38041241e1 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 26 Feb 2024 21:52:30 +0100 Subject: [PATCH] Use maven filtering 3.3.2-SNAPSHOT --- pom.xml | 2 +- .../resources/remote/AbstractProcessRemoteResourcesMojo.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5b4d27b..98c0149 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ under the License. 2023-05-08T18:49:15Z - 3.3.1 + 3.3.2-SNAPSHOT diff --git a/src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java b/src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java index 63b3c8c..e2eaa37 100644 --- a/src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java +++ b/src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java @@ -78,6 +78,7 @@ import org.apache.maven.shared.artifact.filter.collection.GroupIdFilter; import org.apache.maven.shared.artifact.filter.collection.ProjectTransitivityFilter; import org.apache.maven.shared.artifact.filter.collection.ScopeFilter; +import org.apache.maven.shared.filtering.FilteringUtils; import org.apache.maven.shared.filtering.MavenFileFilter; import org.apache.maven.shared.filtering.MavenFileFilterRequest; import org.apache.maven.shared.filtering.MavenFilteringException; @@ -639,7 +640,7 @@ protected boolean copyResourceIfExists(File file, String relFileName, VelocityCo throw new MojoExecutionException("Error filtering resource: " + source, e); } } else { - FileUtils.copyFile(source, file); + FilteringUtils.copyFile(source, file, null, null); } // exclude the original (so eclipse doesn't complain about duplicate resources)