title: Is there a way to make maven build class files with UTF-8 without using the external JAVA_TOOL_OPTIONS?
body: <p>I don't want to be dependable on a external environment variable to force maven to build my classes with UTF-8. On Mac, I was getting all sorts of problems when building with maven. Only the option below solved the problem:</p>
  
  <pre><code>export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
  mvn clean install
  </code></pre>
  
  <p>However I am distributing my project and it does NOT make sense to rely on the user to set this environment variable to build the project correctly.</p>
  
  <p>Tried everything as described here: <a href="https://stackoverflow.com/questions/1431008/enabling-utf-8-encoding-for-clojure-source-files">enabling UTF-8 encoding for clojure source files</a></p>
  
  <p>Anyone has a light on that awesome Maven issue?</p>