Skip to content

Commit

Permalink
Avoid resources filtering warning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Bananeweizen authored and hboutemy committed Oct 6, 2024
1 parent be23759 commit 072dcd7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.6.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<!-- https://maven.apache.org/plugins/maven-resources-plugin/examples/filtering-properties-files.html -->
<propertiesEncoding>UTF-8</propertiesEncoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
Expand Down

0 comments on commit 072dcd7

Please sign in to comment.