Skip to content

Commit

Permalink
Prevent info message in resource filtering.
Browse files Browse the repository at this point in the history
If the property is not set, the following message might appear:
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!

This is actually what we want and therefore explicitly set the encoding
for properties to prevent this confusing message. It has no effect on
the actual build
  • Loading branch information
mvilliger committed Mar 1, 2024
1 parent 5367217 commit d5dfe65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maven_plugin_config-master/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<maven.compiler.release>${jdk.source.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.properties.encoding>UTF-8</project.properties.encoding>
<maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
<maven.min.version>3.9.2</maven.min.version>
<maven.api.version>3.9.2</maven.api.version>
Expand Down Expand Up @@ -76,6 +77,7 @@
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<propertiesEncoding>${project.properties.encoding}</propertiesEncoding>
<!--
The delimiter will be used if subprojects set the <filtering> tag to true.
It specifies the form for properties to be replaced.
Expand Down

0 comments on commit d5dfe65

Please sign in to comment.