Looks like the destination folder is already added as resource[1] So you should try:
* remove the dest (it's already copied to the target/classes directory) or set it to 'target/classes' * change src to 'src/main/resources' * change include to 'i18n/applicationResources_*.properties' The trick is that you want the 'i18n'-folder as part of the copy, so you should add it to the include, not to both the src and dest. - Robert [1] http://mojo.codehaus.org/native2ascii-maven-plugin/xref/org/codehaus/mojo/native2ascii/Native2AsciiMojo.html#96 Date: Wed, 4 Aug 2010 18:07:31 +0800 From: [email protected] To: [email protected] Subject: [mojo-user] change generate folder hello, I have following configure: ааааааа <plugin> ааа ааа ааа ааа <groupId>org.codehaus.mojo</groupId> ааа ааа ааа ааа <artifactId>native2ascii-maven-plugin</artifactId> ааа ааа ааа ааа <configuration> ааа ааа ааа ааа ааа <dest>target/classes/i18n</dest> ааа ааа ааа ааа ааа <src>src/main/resources/i18n</src> ааа ааа ааа ааа </configuration> ааа ааа ааа ааа <executions> ааа ааа ааа ааа ааа <execution> ааа ааа ааа ааа ааа ааа <id>native2ascii-utf8</id> ааа ааа ааа ааа ааа ааа <goals> ааа ааа ааа ааа ааа ааа ааа <goal>native2ascii</goal> ааа ааа ааа ааа ааа ааа </goals> ааа ааа ааа ааа ааа ааа <configuration> ааа ааа ааа ааа ааа ааа ааа <encoding>UTF-8</encoding> ааа ааа ааа ааа ааа ааа ааа <includes>applicationResources_*.properties</includes> ааа ааа ааа ааа ааа ааа </configuration> ааа ааа ааа ааа ааа </execution> ааа ааа ааа ааа </executions> ааа ааа ааа </plugin> I want to generate file to target/classes/i18n, but I always get two copy, one in target/classes, another in target/classes/i18n. I got some console info: [INFO] [native2ascii:native2ascii {execution: default}] [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}] I think execution: default will generate file to target/classes, how can I remove this default execution. -- Best Regards Chris Cui
