Force JPMS to add module to boot layer
Alex Buckley
alex.buckley at oracle.com
Tue Jun 23 17:52:58 UTC 2020
On 6/23/2020 9:31 AM, Alex Orlov wrote:
>> From what I can establish, org.hibernate.orm.core is an automatic
>> module so it doesn't have any way to `requires net.bytebuddy` (an
>> explicit module). You'll have to help out by adding `--add-modules
>> net.bytebuddy` to the command line that surefire or failsafe uses.
>
> Yes, and this is the work that I say is very silly. We add modules to module
> path, but JPMS IGNORES THEM. It is obvious that it was a wrong solution
> to let JPMS solve what modules it should add to layer and what modules shouldn’t.
The module path is not like the class path. The class path is chaos; the
module path is order. Think of the module path as a repository that
contains tens, hundreds, thousands of modules, all of which sit silently
until one is required by some module, or resolved due to `--add-modules`.
You're asking the JDK team how to use the ORM core of Hibernate as an
automatic module. What did the Hibernate team say what you asked them?
Alex
More information about the jigsaw-dev
mailing list