Document JAXB dependencies should be added for using hibernate-jpamodelgen in Eclipse IDE

Description

The hibernate-jpamodelgen usage within Eclipse IDE does not work on java 11 due to missing jaxb-api dependency.

Currently, the workaround is to manually add the jaxb-api.jar in the factory path.

Note that the maven-processor-plugin is working fine without additional dependency.

Activity

Show:

Max HuangNovember 29, 2018 at 4:15 PM

Thanks.

Guillaume SmetNovember 29, 2018 at 4:07 PM

ah yes, thanks for following up, we need to update the documentation.

I just pushed a PR to fix that.

Thanks!

Max HuangNovember 29, 2018 at 2:24 PM

@Guillaume Smet,

I followed the instruction from the topical guide which states:

"In Eclipse exists also an additional configuration section under Java Compiler. There you can configure all kinds of aspects of annotation processing. Just check the "Enable annotation processing" option, configure the directory for the generated sources and finally add the Hibernate Static Metamodel Generator and JPA 2 jar files to the factory path."

Let me know if I set it up incorrectly.

Guillaume SmetNovember 29, 2018 at 2:23 PM

does it make sense to you? Do you still think we need to fix something?

Guillaume SmetNovember 29, 2018 at 12:28 PM

Note that, before JDK 11, JAXB was included in the JDK but is now an external dependency.

So if you're using the jar alone, you really need to declare JAXB as a dependency yourself as the JDK won't provide it anymore.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created November 29, 2018 at 3:25 AM
Updated September 25, 2019 at 5:41 AM
Resolved September 11, 2019 at 9:20 AM