How do we force the Eclipse project to use a specific encoding format for a specific type of file ?
Example : UTF-8 for *.sql and ISO-8859-1 for *.java
I can do that in Eclipse of course.
But for the benefit of the team and any new comer, i would like to automatize this task in the build process.
Thankls in advance.
Assuming your sql files are located in a folder identified as a resource (eg /src/main/resources), you can specify a different encoding using the maven-resource plugin.
And source encoding is specified by the system or manually by something like:
For others that don't know how to do this in Eclipse: