After adding a dependency that contains a JPMS module, the maven-bundle-plugin (version 3.3.0) fails with:
[INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ my-bundle ---
[ERROR] Bundle myGroup:my-bundle:bundle:1.0 :
Exception: java.lang.ArrayIndexOutOfBoundsException: 19
[ERROR] Bundle myGroup:my-bundle:bundle:1.0 :
Invalid class file module-info.class (java.lang.ArrayIndexOutOfBoundsException: 19)
It seems that the plugin tries (and fails) to analyze the module-info.class, which should be irrelevant in an OSGi context.