Specifying a character encoding scheme

A character encoding scheme such as ASCII, UTF-8 or UTF-16 can be chosen to be used for the reading and writing of files.

The best practice is to define encoding for copying filtered resources via the property ${project.build.sourceEncoding} which should be defined in the pom properties section like this:

<project ...>

By using the above property maven-resources-plugin will automatically use this encoding.

Occasionally you need to change the encoding explicitly for different purposes. This can be done by defining the encoding via the configuration like this: