0

I have a maven/hibernate/mysql app I'm developing and am having an issue getting the jpa-metamodel stuff working. I have this in my pom.xml:

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.3.1.Final</version>
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-jpamodelgen</artifactId>
        <version>5.3.1.Final</version>
        <scope>provided</scope>
    </dependency>

According to this answer (see 2nd answer down wtih 'March 2018 Answer with Hibernate 5' heading) that addition to the pom.xml and the correct jars on the classpath should be all that are required.

I did a bunch of googling, but most of the answers I came across were old, and I believe deprecated.

Is there a maven goal I need to run especially for the metamodel classes? Does just 'compile' work for these classes?

I also have my compiler settings as follows:

enter image description here

What am I missing?

thanks!

badperson
  • 1,554
  • 3
  • 19
  • 41

0 Answers0