Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.3
-
None
-
None
-
None
-
mvn 2.1.0
Description
I wish to be able to filter XML and Properties files from within the same project. XML are usually UTF-8, and properties must be Latin 1.
With current version of the plugin I can : specify encoding at the plugin level.
<configuration>
...
<encoding>UTF-8</encoding>
...
</configuration>
And specify at the file level whether it should use filtering :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>*/.xml</include>
</includes>
</resource>
But I can't specify at the file level which encoding to use for filtering :
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<encoding>UTF-8</encoding>
<includes>
<include>*/.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<encoding>ISO-8859-1</encoding>
<includes>
<include>*/.properties</include>
</includes>
</resource>
Attachments
Issue Links
- is related to
-
MNG-4149 Extend POM to support encoding parameter per (test) resource
- Closed
- relates to
-
MRESOURCES-281 allow different encodings for files inside the same resource-directory
- Open