| I would like to target JDK11 and newer. When using the hibernate-jpamodelgen annotation processor to generate the static meta model for the criteria API, I can only target JDK10. If I attempt to target JDK11 or newer, the package name will be incorrect and reference JDK10 and older. The new JDK11 path is: javax.annotation.processing and NOT javax.annotation <plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <version>3.3.3</version> <executions> <execution> <id>process</id> <goals> <goal>process</goal> </goals> <phase>generate-sources</phase> <configuration> <!-- source output directory --> <outputDirectory>$ {project.build.directory} /generated-sources/java/jpametamodel</outputDirectory> <processors> <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor> </processors> <overwrite>true</overwrite> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-jpamodelgen</artifactId> <version>$ {hibernate.version} </version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> </dependencies> |