How to add org.eclipse.swt (and other plugin dependencies) as an automatic Java9 module?

后端 未结 1 999

In order to be able to use my Eclipse plugin \"treezCore\" also as a Java9 module I created a module-info.java in my src folder.

Furthermore, I moved the Plug-in De

相关标签:
1条回答
  • 2020-12-10 21:22

    What you observe is tracked in bug 525660, which starts with the observation that all existing (OSGi) artifacts of Eclipse don't work as automatic modules, because Java 9 fails to derive a valid module name from jar filenames of the shape org.eclipse.swt_3.106.1.v20170926-0519.jar.

    Since this was discovered too late to request improving the algorithm for automatic module name derivation, this can only be fixed by adding Automatic-Module-Name headers to the manifests of future releases.

    This header is present starting from Photon M4 as can be seen in org.eclipse.swt_3.107.0.v20171205-0742.jar, containing:

    Automatic-Module-Name: org.eclipse.swt

    0 讨论(0)
提交回复
热议问题