1
I have a fully configured Eclipse project and my files. java uses ISO-8859-1 encoding and some other Resource files use UTF-8 encoding.
I need to create an archetype from this project.
I’ve tried anyway and I can’t get Maven to create my archetype with the right encoding. No matter what I do, files are always copied to the archetype with the UTF-8 encoding.
I’ve tried to:
Configure the POM.xml
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
<project.reporting.outputEncoding>ISO-8859-1</project.reporting.outputEncoding>
Pass these parameters on the command line
mvn archetype:create-from-project -Dproject.build.sourceEncoding=ISO-8859-1 -Dproject.reporting.outputEncoding=ISO-8859-1
And nothing works.
Any help will be welcome.