Im firing this question at you guys since the project-page itself has not a lot of information.
Basicly im setting up the native2ascii-maven-plugin to process some of my resources. It works fine for processing the files in root directory. But now i have files under subdirectory: /template/email/
and would like them to be included in the processing. Can you guys please help me out?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<configuration>
<dest>target/resources</dest>
<src>src/main/resources</src>
</configuration>
<executions>
<execution>
<id>native2ascii-utf8</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>UTF8</encoding>
<includes>ApplicationResources*.properties, errors.properties, /template/email/newBooking*.ftl</includes>
</configuration>
</execution>
</executions>
</plugin>
Thanks a bunch!!
You need to define a execution section for every folder you want to process and move the src and dest to the execution part:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<id>native2ascii-utf8-resources</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<dest>target/resources</dest>
<src>src/main/resources</src>
<encoding>UTF8</encoding>
<includes>ApplicationResources*.properties, errors.properties, /template/email/newBooking*.ftl</includes>
</configuration>
</execution>
<execution>
<id>native2ascii-utf8-email</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<dest>target/resources/email</dest>
<src>src/main/templates/email</src>
<encoding>UTF8</encoding>
</configuration>
</execution>
</executions>
</plugin>
Here a solution for "native2ascii". All files (recursively) found in src/main/locale
are destined to target/classes
:
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>UTF8</encoding>
<src>src/main/locale</src>
<dest>target/classes</dest>
</configuration>
</execution>
</executions>
</plugin>
[...]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With