I am trying to use maven-processor-plugin for generating JPA metamodel java files and I set up my pom.xml as belows.
i have also a working solution and i want to share this one with others. so i hope that is the correct place for this.
the code can be found at GitHub https://github.com/StefanHeimberg/jpa21-maven-metagen
features:
pom.xml:
4.0.0
com.github.stefanheimberg
jpa21-maven-metagen
1.0-SNAPSHOT
jar
UTF-8
1.8
1.8
javax
javaee-api
7.0
provided
hibernate
true
5.0.3.Final
org.hibernate
hibernate-jpamodelgen
${hibernate.version}
provided
eclipselink
false
2.6.1
org.eclipse.persistence
org.eclipse.persistence.jpa.modelgen.processor
${eclipselink.version}
provided
m2e
m2e.version
org.eclipse.m2e
lifecycle-mapping
1.0.0
org.codehaus.mojo
build-helper-maven-plugin
[1.9.1,)
add-source
true
true
org.codehaus.mojo
build-helper-maven-plugin
1.9.1
add-source
generate-sources
add-source
${project.build.directory}/generated-sources/annotations/