This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new d262274  Fix OSGI support on Java 11
d262274 is described below

commit d262274585735d36bc39d11475005d2021a095f9
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Mar 31 22:19:47 2022 +0200

    Fix OSGI support on Java 11
    
    Ports the OSGI fixes from `master`
---
 log4j-1.2-api/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml
index d7a707c..d6c9341 100644
--- a/log4j-1.2-api/pom.xml
+++ b/log4j-1.2-api/pom.xml
@@ -144,6 +144,12 @@
           <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>

Reply via email to