title: How to format a JAXB generated java class?
body: <p>My code fails due to checkstyle issues while compiling auto-generated jaxb classes. Any hints? Mentioned below is the maven error and except from my pom.xml.</p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>[INFO] --- maven-checkstyle-plugin:2.12:checkstyle (enforce-style) @ my ---
  [INFO] Starting audit...
  DefaultRole.java:42:1: '{' should be on the previous line.
  RoleT.java:39:1: '{' should be on the previous line.
  Audit done.
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p><strong>Pom.xml</strong></p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
  
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;xjc&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;schemaDirectory&gt;src/main/webapp/schemas/&lt;/schemaDirectory&gt;
                  &lt;packageName&gt;com.my.schema.jaxbtest&lt;/packageName&gt;
                  &lt;outputDirectory&gt;${basedir}/src/main/java&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>