Good day to you, Robert,
You must declare your UTF-8 files as one resource and your ISO-8859-1 files
as another. For example,
<project>
...
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<encoding>UTF-8</encoding>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<encoding>ISO-88591</encoding>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.xml</exclude>
<exclude>**/*.properties</exclude>
</excludes>
</resource>
</resources>
</project>
For more information, kindly take a look at [1].
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-resources-plugin/
Robert Reiner wrote:
>
> Hi!
>
> I have a question concerning the maven-resources-plugin: In my resource
> folder I have files with different encodings. The XML files are UTF-8, the
> properties files are ISO-8859-1. Since I set the encoding for copying the
> files to UTF-8, my property files are not copied properly.
>
> A workaround I can think of is running the resources plugin a second time
> and include only the property files with the encoding set to ISO-8859-1.
> But how can I specify these files in the configuration of the second
> execution block?
>
> Maybe there is a more maven-like way to do this: Can someone give me
> advice how to handle resource files with different encodings?
>
> Thanks for your answer.
>
> Robert
>
--
View this message in context:
http://www.nabble.com/Resources-with-different-encoding-tf2736719s177.html#a7682184
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]