title: How to run Hibernate's JPAMetaModelEntityProcessor Static Metamodel Generator on Scala entities
body: <p>I'm able to run Hibernate's jpamodelgen on java-based JPA-entites having this in my pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-jpamodelgen&lt;/artifactId&gt;
      &lt;version&gt;1.1.1.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But this fails for entities written in Scala, of course. I've tried to "manually" generate the metamodel using the maven-processor-plugin having my pom.xml look like this:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.bsc.maven&lt;/groupId&gt;
      &lt;artifactId&gt;maven-processor-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;process&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;process&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;processors&gt;
                      &lt;!-- list of processors to use --&gt;
                      &lt;processor&gt;org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor&lt;/processor&gt;
                  &lt;/processors&gt;
                  &lt;!-- source output directory --&gt;
                  &lt;outputDirectory&gt;target/metamodel&lt;/outputDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.3&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;add-source&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;add-source&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;sources&gt;
                      &lt;source&gt;target/metamodel&lt;/source&gt;
                  &lt;/sources&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But nothing happens.</p>
  
  <p>Anybody has successfully generated the JPA metamodel from JPA entities written in Scala?</p>
  
  <p>Thanks.</p>