Currently I'm checking the range of possibilities of Java module ServiceLoader for my following project.
I have (example 1):
Application folder (for purpose called FirstApplicationStructure):
- MyApp.jar
- lib folder for external jars
- ext folder for my modules
MyApp application works fine.
Now, I would like to add one more layer in example 1 architecture, in the following order (example 2):
- MainApp.jar
- rsc folder with FirstApplicationStructure
How to set dependencies for example 2 that will make it works?
Just to make it a clearer MainApp module is MyApp, MyApp modules are in ext/lib folders.