title: How to configure encoding in Maven?
body: <p>When I run <code>maven install</code> on my multi module maven project I always get the following output:</p>
  
  <pre><code>[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  </code></pre>
  
  <p>So, I googled around a bit, but all I can find is that I have to add:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>...to my pom.xml. But it's already there (in the parent <code>pom.xml</code>).</p>
  
  <p>Configuring <code>&lt;encoding&gt;</code> for the maven-resources-plugin or the maven-compiler-plugin also doesn't fix it. </p>
  
  <p>So what's the problem?</p>