title: Illegal pattern character with maven-jaxb2-plugin
body: <p>I'm new of maven this is the first time that I'm using maven-jaxb2-plugin to generate  java classes from a .xsd schema.</p>
  
  <p>This is my pom.xml:</p>
  
  <pre><code> &lt;properties&gt;
      &lt;java.source.version&gt;1.6&lt;/java.source.version&gt;
      &lt;java.target.version&gt;1.6&lt;/java.target.version&gt;
   &lt;/properties&gt;
   &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${java.source.version}&lt;/source&gt;
                  &lt;target&gt;${java.target.version}&lt;/target&gt;
              &lt;/configuration&gt;
  
          &lt;/plugin&gt;
  
  
          &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.3&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
  
              &lt;configuration&gt;
                  &lt;schemaDirectory&gt;src/main/resources/schema&lt;/schemaDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;mySchema.xsd&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
                  &lt;generatePackage&gt;it.mycompany.jaxb2&lt;/generatePackage&gt;
                  &lt;readOnly&gt;true&lt;/readOnly&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;/build&gt;    
  &lt;dependencies&gt;
      &lt;!-- A few dependiences --&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>The trouble is that when i try to run </p>
  
  <blockquote>
    <p>mvn install</p>
  </blockquote>
  
  <p>i get the following error</p>
  
  <pre><code>Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.8.3:generate failed: Illegal pattern character 'g'
  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
  ... 20 more
    Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'g'
  at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:768)
  at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:575)
  at java.text.SimpleDateFormat.&lt;init&gt;(SimpleDateFormat.java:500)
  at com.sun.tools.xjc.Options.getPrologComment(Options.java:937)
  at com.sun.tools.xjc.addon.episode.PluginImpl.run(PluginImpl.java:177)
  at com.sun.tools.xjc.model.Model.generateCode(Model.java:294)
  at org.jvnet.mjiip.v_2_2.XJC22Mojo.generateCode(XJC22Mojo.java:70)
  at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:45)
  at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:29)
  at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:318)
  at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:160)
  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
  ... 21 more
  </code></pre>
  
  <p>Maven is configured in this way:</p>
  
  <blockquote>
    <p>mvn --version Maven home: C:\Program Files
    (x86)\apache-maven-3.1.1\bin.. Java version: 1.6.0_45, vendor: Sun
    Microsystems Inc. Java home: C:\Program Files
    (x86)\Java\jdk1.6.0_45\jre Default locale: it_IT, platform encoding:
    Cp1252 OS name: "windows 8", version: "6.2", arch: "x86", family:
    "windows"</p>
  </blockquote>
  
  <p>Where am I doing wrong? </p>