Fix OSGI support on Java 11
Ports the OSGI fixes from `master`
<instructions>
<Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
<Export-Package>org.apache.log4j.*</Export-Package>
+ <Import-Package>
+ javax.jms;version="[1.1,2)";resolution:=optional,
+ <!-- used by org.apache.log4j.jmx.Agent -->
+ com.sun.jdmk.comm;resolution:=optional,
+ *
+ </Import-Package>
</instructions>
</configuration>
</plugin>
