On 28/09/2018 15:30, Alex Sviridov wrote:
Alan, thank you very much for your help. This is what I was looking for.
Only one moment - as I  understand the ModuleFinder that you implemented can work only with .war modules. However, at one JPMS layer I want to place .war
modules and .jar modules. What should I do in such situation? Should I do
ModuleFinder commonFinder = ModuleFinder.compose(jarFinder, warFinder);
Yes, this is way to compose them.


Configuration cf = boot.configuration().resolve(commonFinder,  ModuleFinder.of(), Set.of(jars+wars)); ?
For the root modules then I assume you just need the name of the application module, not the names of the modules in the JAR files. You may also want to use resolveAndBind so that service provider modules are also resolved.

-Alan

Reply via email to