title: jaxb generating files with maven in wrong encoding
body: <p>I've got an xsd:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  
  &lt;!-- The xml file --&gt;
  </code></pre>
  
  <p>and I'm generating classes from that xsd with jaxb with maven:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.8.0&lt;/version&gt;
      &lt;configuration&gt;
        &lt;schemaDirectory&gt;src/main/resources/xsd&lt;/schemaDirectory&gt;
        &lt;bindingDirectory&gt;src/main/resources/xsd&lt;/bindingDirectory&gt;
        &lt;generatePackage&gt;be.fgov.minfin.bbf.business.fileprocessing.jaxb&lt;/generatePackage&gt;
        &lt;encoding&gt;UTF-8&lt;/encoding&gt;
        &lt;strict&gt;false&lt;/strict&gt;
        &lt;extension&gt;true&lt;/extension&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
            &lt;artifactId&gt;jaxb2-basics&lt;/artifactId&gt;
            &lt;version&gt;0.6.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
            &lt;artifactId&gt;jaxb2-basics-annotate&lt;/artifactId&gt;
            &lt;version&gt;0.6.2&lt;/version&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
        &lt;args&gt;
          &lt;arg&gt;-Xannotate&lt;/arg&gt;
          &lt;arg&gt;-XtoString&lt;/arg&gt;
        &lt;/args&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;id&gt;generate&lt;/id&gt;
          &lt;goals&gt;
            &lt;goal&gt;generate&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>The files are generated correctly, but the files are generated with encoding Cp1252, why? I'm getting an unmappable character for encoding UTF-8 exception for the "é" characters inside when I'm trying to compile.</p>
  
  <p>I'm setting the: </p>
  
  <pre><code>${project.build.sourceEncoding}
  </code></pre>
  
  <p>variable in my main pom.xml to UTF-8..</p>