org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address

Hibernate JIRA | Petras | 6 months ago
  1. 0

    Though HHH-9582 is marked as fixed in 5.0.0-CR2, enhancing in 5.1.0 still fails with the same error: {code} [ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address: Unable to enhance persistent attribute [hbm.test.Address:country]: hbm.t est.Country {code} Here is the stack trace if build run with -X command: {code} [ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address: Unable to enhance persistent attribute [hbm.test.Address:country]: hbm.test.Country -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) ... Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to enhance class: hbm.test.Address at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.doEnhancement(MavenEnhancePlugin.java:247) at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.execute(MavenEnhancePlugin.java:153) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.hibernate.bytecode.enhance.spi.EnhancementException: Unable to enhance persistent attribute [hbm.test.Address:country] at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhancePersistentAttribute(PersistentAttributesEnhancer.java:111) at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhance(PersistentAttributesEnhancer.java:61) at org.hibernate.bytecode.enhance.internal.CompositeEnhancer.enhance(CompositeEnhancer.java:40) at org.hibernate.bytecode.enhance.spi.Enhancer.enhance(Enhancer.java:147) at org.hibernate.bytecode.enhance.spi.Enhancer.enhance(Enhancer.java:87) at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.doEnhancement(MavenEnhancePlugin.java:242) ... 23 more Caused by: javassist.NotFoundException: hbm.test.Country at javassist.ClassPool.get(ClassPool.java:452) at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:592) at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:542) at javassist.CtField.getType(CtField.java:371) at org.hibernate.bytecode.enhance.internal.AttributeTypeDescriptor.resolve(AttributeTypeDescriptor.java:79) at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhancePersistentAttribute(PersistentAttributesEnhancer.java:99) ... 28 more {code} I attached the same project from "HHH 9582" with dependencies on Hibernate 5.1.0.

    Hibernate JIRA | 6 months ago | Petras
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address
  2. 0

    Though HHH-9582 is marked as fixed in 5.0.0-CR2, enhancing in 5.1.0 still fails with the same error: {code} [ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address: Unable to enhance persistent attribute [hbm.test.Address:country]: hbm.t est.Country {code} Here is the stack trace if build run with -X command: {code} [ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address: Unable to enhance persistent attribute [hbm.test.Address:country]: hbm.test.Country -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) ... Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to enhance class: hbm.test.Address at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.doEnhancement(MavenEnhancePlugin.java:247) at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.execute(MavenEnhancePlugin.java:153) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.hibernate.bytecode.enhance.spi.EnhancementException: Unable to enhance persistent attribute [hbm.test.Address:country] at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhancePersistentAttribute(PersistentAttributesEnhancer.java:111) at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhance(PersistentAttributesEnhancer.java:61) at org.hibernate.bytecode.enhance.internal.CompositeEnhancer.enhance(CompositeEnhancer.java:40) at org.hibernate.bytecode.enhance.spi.Enhancer.enhance(Enhancer.java:147) at org.hibernate.bytecode.enhance.spi.Enhancer.enhance(Enhancer.java:87) at org.hibernate.orm.tooling.maven.MavenEnhancePlugin.doEnhancement(MavenEnhancePlugin.java:242) ... 23 more Caused by: javassist.NotFoundException: hbm.test.Country at javassist.ClassPool.get(ClassPool.java:452) at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:592) at javassist.bytecode.Descriptor.toCtClass(Descriptor.java:542) at javassist.CtField.getType(CtField.java:371) at org.hibernate.bytecode.enhance.internal.AttributeTypeDescriptor.resolve(AttributeTypeDescriptor.java:79) at org.hibernate.bytecode.enhance.internal.PersistentAttributesEnhancer.enhancePersistentAttribute(PersistentAttributesEnhancer.java:99) ... 28 more {code} I attached the same project from "HHH 9582" with dependencies on Hibernate 5.1.0.

    Hibernate JIRA | 6 months ago | Petras
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address
  3. 0

    Compilation failure in maven

    Stack Overflow | 1 year ago | verystrongjoe
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project faro-jpa: Compilation failure
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    First compilation error

    GitHub | 1 year ago | sekaijin
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.24:npm (npm install) on project hawtio-web: Failed to run task
  6. 0

    Getting Java error

    GitHub | 2 years ago | timeglider
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on project gedcom: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java are missing or invalid

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.lifecycle.LifecycleExecutionException

      Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.1.0.Final:enhance (default) on project hbm-enhance-test: Unable to enhance class: hbm.test.Address

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute()
    2. Maven Core
      MojoExecutor.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      1 frame