I’d like to make Maven compile my project with the -Dfile.encoding=UTF8 flag, by setting it in the pom.xml, of the parent project.
This is not doing it:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
So I get this error when Maven compiles:
javac option: M:\Parent\persistence\target\generated-sources\apt
...\Database.java:90: error: unmappable character for encoding Cp1252
* Semantics of SQL INSERT OR IGNOREÃ?
According to the docs, what you have looks to be correct:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
since that’s failing, try setting it explicitly: