Hi group,
I found out a way to solve the problem that native2ascii plugin copying
resources twice. May be some of you know the trick already, but I just want
to save it for future enquiry.
Suppose I want to convert the properties files inside the directory
"src/main/resources/lang".
First I need to exclude copying those properties file, it may sound strange,
but this is the trick.
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>lang/*.properties</exclude>
</excludes>
<filtering>true</filtering>
</resource>
</resources>
For the native2ascii setting,
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<src>src/main/resources</src>
<includes>lang/*.properties</includes>
</configuration>
</execution>
</executions>
</plugin>
That's all.
Thanks
Franz Wong