Lately I've been experiencing problematic behavior in a platform application with close to 40 modules, NetBeans ones un-counted.
I believe that it's related to the fact that I did not declare any OpenIDE-Module-Module-Dependencies in the manifests and that the module load order changed somehow. I do have a couple of platform books but I'm struggling with putting the pieces together in order to secure my module dependencies. This led to the following questions: 1. Is it just dumb luck that I got away with this for a couple of years, just relying on maven dependencies? 2. Does the following list reflect the order for @OnStart and Installers to be executed? INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: org.openide.util.lookup [8.41.1 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] org.openide.util [9.15.1 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] org.openide.util.ui [9.16.1 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] org.openide.modules [7.56 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] org.netbeans.api.annotations.common/1 [1.35 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] se.trixon.almond.almond.nbp.core [11.0.6 11.0.6-20200809 202008090637] org.openide.filesystems [9.18 12.0-u1-efd543aaefdb0a9f8f0073896cb12c82fe4ef9c8] ... 3. Will the order of the module loading always be the same, given that the module collection is unchanged? 4. Will OpenIDE-Module-Module-Dependencies declarations change the loading order? (Counting on that actually :)) 5. Is it a good idea to create a module A, that depends (manifest) on module B, C & D, and let module E that depends on B,C,D depend on A instead? There are a couple of E1, E2,E3 modules. 6. Should I combine OpenIDE-Module-Module-Dependencies with <moduleType> in nbm-maven-plugin? 7. How do they interact? /Patrik