Sometime it’s necessary to convert .properties files which have been saved as UTF-8 to the native ascii format so they can be loaded by Java applications later on. If you use Maven2 you will run into some nasty problems. Whatever you do, the files seems to never be converted…

Let’s assume we want to convert the file i18n/ to the .properties ascii format (escaped unicode characters). You need this section in your POM file:


But if you look into target/classes/i18n/ after a compile you still can see the old data… The problem is that the maven resource plugin overwrites the converted file. Use this in your pom.xml file :


Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

This site uses Akismet to reduce spam. Learn how your comment data is processed.