Add <project.build.sourceEncoding> in pom.xml.