title: JAXB2 schemagen syntax error when passing from JDK7 to 8
body: <p>I'm trying to build a Confluence plugin with Java 8. It builds correctly with Java 7. It uses the jaxb2-maven-plugin, where one of the defined executions with goal "schemagen" and phase "generate-resources" is throwing this error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:2.3.1:schemagen (restTypes) on project bb-team-plugin: 
          Execution restTypes of goal org.codehaus.mojo:jaxb2-maven-plugin:2.3.1:schemagen failed: 
          syntax error @[1,1] in file: MY_WORKDIR/target/generated-sources/jaxb/META-INF/sun-jaxb.episode -&gt; [Help 1]
  </code></pre>
  
  <p>The bindings file i have:</p>
  
  <pre><code>&lt;jxb:bindings jxb:version="1.0" jxb:extensionBindingPrefixes="xjc"
   xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
   xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"&gt;
      &lt;jxb:globalBindings&gt;
        &lt;xjc:simple /&gt;
      &lt;/jxb:globalBindings&gt;
  &lt;/jxb:bindings&gt;
  </code></pre>
  
  <p>Using -e or -X in maven doesn't throw any extra useful output, using  in the configuration for the execution throws a SAXParseException warning and the same error as mentioned above.</p>
  
  <p>I've compared my sun-jaxb.episode against other examples (as in this site <a href="https://github.com/highsource/maven-jaxb2-plugin/wiki/Using-Episodes" rel="nofollow noreferrer">https://github.com/highsource/maven-jaxb2-plugin/wiki/Using-Episodes</a>) and it has the exact same structure, nothing looks malformed in there. </p>
  
  <p>Any idea what could be happening?</p>