title: Maven 4.0.0 Swagger 1.3.12 build fails
body: <p>I'm trying to get maven to build with swagger.
  But I get this error:</p>
  
  <blockquote>
    <p>Failed to execute goal com.github.kongchen:swagger-maven-plugin:2.3.4:generate (default) on project web: Execution default of goal com.github.kongchen:swagger-maven-plugin:2.3.4:generate failed: An API incompatibility was encountered while executing com.github.kongchen:swagger-maven-plugin:2.3.4:generate: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/LockModeType</p>
  </blockquote>
  
  <p>The pom.xml dependency: </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.wordnik&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
          &lt;version&gt;1.3.12&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
                  &lt;artifactId&gt;jsr311-api&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>The pom.xml Plugin:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;com.github.kongchen&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.4&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;apiSources&gt;
                      &lt;apiSource&gt;
                          &lt;supportSpringMvc&gt;false&lt;/supportSpringMvc&gt;
                          &lt;locations&gt;package.rest&lt;/locations&gt;
                          &lt;apiVersion&gt;0.1&lt;/apiVersion&gt;
                          &lt;basePath&gt;/api&lt;/basePath&gt;
                          &lt;outputTemplate&gt;${basedir}/swaggerTempl/strapdown.html.mustache&lt;/outputTemplate&gt;
                          &lt;mustacheFileRoot&gt;${basedir}/swaggerTempl&lt;/mustacheFileRoot&gt;
                          &lt;outputPath&gt;${project.build.directory}/swaggerFolder/document.html&lt;/outputPath&gt;
                          &lt;swaggerDirectory&gt;${project.build.directory}/swaggerFolder&lt;/swaggerDirectory&gt;
                      &lt;/apiSource&gt;
                  &lt;/apiSources&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;compile&lt;/phase&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>Can anyone help me? What do I have to change to build it correctly?
  Do I have to install swagger on my PC?
  These folders don't exist, do I have to create them or should maven/swagger do it automatically?:</p>
  
  <blockquote>
    <p>${basedir}/swaggerTempl/strapdown.html.mustache</p>
    
    <p>${basedir}/swaggerTempl</p>
  </blockquote>
  
  <p>A buddy of mine got a solution, sadly its was pretty complicated and I can't write it here. :-(
  Therefore this thread can be deleted!</p>