Hi vitaliy, ----- Mail original ----- > De: "Pisarev, Vitaliy" <[email protected]> > À: [email protected] > Envoyé: Dimanche 27 Novembre 2016 19:28:51 > Objet: How many modules per jar?
> I am not sure I hit the right mailing list, kindly redirect me if needed. > > I am preparing a lecture for my team about the new module system and wondering > whether there is already a set of best practices around this. > > For example: should we host each module in a separate jar or should a jar > contain more than one module if the list is cohesive enough? Currently, you can not have several modules in a one jar, #MultiModuleJARs [1] is no resolved. So one modular jar (a jar with a module-info.class at its root) => one module. Programmatically, you can create your own Layer, and defines a ModuleFinder that will load all the modules from one jar, but the default implementation do not provide an implementation like that. > > Thanks, > Vitaliy. cheers, Rémi [1] http://openjdk.java.net/projects/jigsaw/spec/issues/#MultiModuleJARs
