Skip to content

Commit 072dcd7

Browse files
Bananeweizenhboutemy
authored andcommitted
Avoid resources filtering warning
Since maven-resources 3.2.0 the encoding shall be specified explicitly. Avoids this console output: [INFO] The encoding used to copy filtered properties files have not been set. This means that the same encoding will be used to copy filtered properties files as when copying other filtered resources. This might not be what you want! Run your build with --debug to see which files might be affected. Read more at https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html
1 parent be23759 commit 072dcd7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,15 @@
357357
<artifactId>maven-project-info-reports-plugin</artifactId>
358358
<version>3.6.2</version>
359359
</plugin>
360+
<plugin>
361+
<groupId>org.apache.maven.plugins</groupId>
362+
<artifactId>maven-resources-plugin</artifactId>
363+
<version>3.3.1</version>
364+
<configuration>
365+
<!-- https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html -->
366+
<propertiesEncoding>UTF-8</propertiesEncoding>
367+
</configuration>
368+
</plugin>
360369
</plugins>
361370
</pluginManagement>
362371
<resources>

0 commit comments

Comments
 (0)