badass-jlink-plugin icon indicating copy to clipboard operation
badass-jlink-plugin copied to clipboard

Main module of secondary launched not added

Open HGuillemet opened this issue 11 months ago • 2 comments

When configuring a secondary launcher, its moduleName is not listed in the --add-modules option of jlink, and jpackage fails with an exception like:

java.lang.RuntimeException: jdk.jpackage.internal.ConfigException: "Failed to find XXXX module in module path"

(unless the module of the secondary launcher is a module dependency of main launcher module).

Could you consider fixing that ?

Current workaround is to configure a customImage with an explicit list of appModules.

HGuillemet avatar Jan 20 '25 13:01 HGuillemet

Hello @HGuillemet, I will look into this when I find the time. Need to create a simple reproducer first to add to the plugin tests.

xzel23 avatar Jan 21 '25 16:01 xzel23

Here is a reproducer.

secondary-launcher-module.tgz

HGuillemet avatar Jan 29 '25 09:01 HGuillemet