I am trying to use maven-processor-plugin for generating JPA metamodel java files and I set up my pom.xml as belows.
As described on https://docs.jboss.org/hibernate/orm/5.0/topical/html/metamodelgen/MetamodelGenerator.html:
Simply add this to
in your pom.xml
:
org.hibernate
hibernate-jpamodelgen
5.2.16.Final
provided
There is nothing else that should be necessary for you to do. If you run into issues, visit the jboss page at the top of this answer.
The version included in this snippet is the latest version as of March, 2018, but check the artifact page (https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen) for the latest version.
This is not intended to be an original answer, but should prove helpful to anyone who wants a simple, straightforward copy-pastable solution.