What incantation do I put into pom.xml which will be equivalent to
export JAVA_TOOL_OPTIONS='-Dfile.encoding=UTF-8'
in .profile?
I tried
<configuration>
<file.encoding>UTF-8</file.encoding>
</configuration>
in maven-compiler-plugin and
<properties>
<file.encoding>UTF-8</file.encoding>
</properties>
in top level and it did not work.
The main idea is to set this from pom.xml, NOT from the environment
(I have no control over what environment this will be run under).
Again, I am not interested in any solution which modifies .profile et al.