Java 增强休眠字节码错误-执行失败,找不到解决方案

Java 增强休眠字节码错误-执行失败,找不到解决方案,java,hibernate,maven,bytecode,Java,Hibernate,Maven,Bytecode,我正在使用下面的链接进行字节增强: 我曾经 Maven hibernate插件–增强 <build> <plugins> <plugin> <groupId>org.hibernate.orm.tooling</groupId> <artifactId>hibernate-enhance-maven-plugin</artifactId> <executio

我正在使用下面的链接进行字节增强:

我曾经 Maven hibernate插件–增强

<build>
  <plugins>
    <plugin>
      <groupId>org.hibernate.orm.tooling</groupId>
      <artifactId>hibernate-enhance-maven-plugin</artifactId>
      <executions>
        <execution>
          <phase>compile</phase>
          <goals>
            <goal>enhance</goal>
          </goals>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

org.hibernate.orm.tooling
hibernate增强maven插件
编译
增强
我有以下错误:

无法执行目标org.hibernate.orm。工具:hibernate enhance maven插件:5.2.9。最终:enhance(默认)在项目MavenhibernateeExample:goal org.hibernate.orm的执行默认值。工具:hibernate enhance maven插件:5.2.9。最终:增强失败:由于API不兼容,无法加载插件“org.hibernate.orm”中的mojo“enhance”。工具:hibernate enhance maven插件:5.2.9.最终:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:org/hibernate/orm/tooling/maven/MavenEnhancePlugin:Unsupported major.minor version 52.0


我查看了生成的类,但这些类与输入相同——没有任何是暂时的或修改的。我不知道这里发生了什么事。我在网上搜索了一下,但没有找到。有人知道吗?

不支持的主要版本。次要版本52.0
通常表明您有JRE版本不兼容。您正在使用什么JRE?插件的最低要求是什么?欢迎使用Stack Overflow!我对你的问题做了一些编辑——删除了“谢谢”,因为这被认为是堆栈溢出的噪声。(是的,这看起来有点奇怪,但你会习惯的)。我还将错误消息放在“报价降价”中。总而言之,这是一个问得很好的问题。如果你能找到更多的信息,帮助我们诊断问题,他们一定会把它变成问题。祝你好运,希望你能得到答案!谢谢我做了修改,但它似乎没有抛出错误,我看到:成功增强类[src.foo.App]成功增强类[src.foo.Main]成功增强类[src.foo.Person]成功增强类[src.foo.Item]。然而,当我用java反编译器打开.class文件时,我没有看到我使用的链接中提到的任何“增强”代码。你知道会是什么吗?我使用的是映射而不是注释,但我没有看到任何引用说我必须使用注释。