jlink images and module layers

Gunnar Morling gunnar at hibernate.org
Fri Feb 5 15:39:09 UTC 2021


Hi all,

While working on Layrry [1] [2] [3], a launcher and runtime for
layered Java applications, I've come to wonder whether there's a way
for sourcing multiple module layers from a custom runtime image
created via jlink?

I couldn't find a way so far, as a) it seems not possible to add
multiple versions of a module to a runtime image (one of the use cases
for layered applications), and b) it's not clear how the module finder
API would address modules in an image. If this is not supported atm.,
are there any plans to do so?

To give some context on Layrry, it's an exploration for providing a
framework that allows the creation of modularized applications based
on the module system and its notion of layers, addressing the
multi-version issue of (transitive) dependences, provisioning modules
based on their Maven coordinates, supporting the dynamic
addition/removal of layers at runtime ("plug-ins"), and more.

Thanks,

--Gunnar

[1] https://github.com/moditect/layrry/
[2] https://www.morling.dev/blog/plugin-architectures-with-layrry-and-the-java-module-system/
[3] http://andresalmiray.com/layrry-1-0-0-alpha1-has-been-released/


More information about the jigsaw-dev mailing list