My Plugin depends on javaee.jar. In IDEA 8.x it was included in the IDEA own classpath inherited by plugin so was accessible to plugin automatically. In IDEA 9 it is no longer the case. I can certainly add it as a library to plugin but then javaee.jar is exported and bundled with the plugin which seems rather execssive.
My plugin depends on com.intellij.javaee plugin and I assume the latter also uses classes from javaee.jar so it is probably available to IDEA classloader. In fact I can see a file named resources/versions/libraries_javaee.xml that has lines like:
<lib version="5" jar-name="javaee.jar" required-classes="javax.interceptor.AroundInvoke"/>
but I can not see any documentation that explains how it works.
Is there any clean way to include javaee.jar as a dependent library for a plugin without exporting and bundling it?
Any ideas are greatly appreciated.