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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7259451017 Revert Maven `dependency:analyze` suggestions
7259451017 is described below

commit 725945101729924a0c9a093856011cb346bbb178
Author: Piotr P. Karwasz <piotr.git...@karwasz.org>
AuthorDate: Thu Sep 22 23:41:13 2022 +0200

    Revert Maven `dependency:analyze` suggestions
---
 log4j-api/pom.xml     | 5 +++++
 log4j-core/pom.xml    | 8 +++++++-
 log4j-plugins/pom.xml | 5 +++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml
index ded0a0bdb6..c369e67e89 100644
--- a/log4j-api/pom.xml
+++ b/log4j-api/pom.xml
@@ -38,6 +38,11 @@
       <artifactId>org.osgi.framework</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.resource</artifactId>
+      <scope>provided</scope>
+    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/log4j-core/pom.xml b/log4j-core/pom.xml
index 5299037319..355e78d61f 100644
--- a/log4j-core/pom.xml
+++ b/log4j-core/pom.xml
@@ -49,6 +49,12 @@
       <artifactId>org.osgi.framework</artifactId>
       <scope>provided</scope>
     </dependency>
+    <!-- Used for OSGi bundle support -->
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.resource</artifactId>
+      <scope>provided</scope>
+    </dependency>
     <!-- Required for AsyncLoggers -->
     <dependency>
       <groupId>com.lmax</groupId>
@@ -89,7 +95,7 @@
     <dependency>
       <groupId>com.fasterxml.jackson.dataformat</groupId>
       <artifactId>jackson-dataformat-xml</artifactId>
-      <scope>runtime</scope>
+      <optional>true</optional>
     </dependency>
     <!-- Required for console color support in Windows -->
     <dependency>
diff --git a/log4j-plugins/pom.xml b/log4j-plugins/pom.xml
index 419ec613ec..18262d7755 100644
--- a/log4j-plugins/pom.xml
+++ b/log4j-plugins/pom.xml
@@ -43,6 +43,11 @@
       <artifactId>org.osgi.framework</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>org.osgi</groupId>
+      <artifactId>org.osgi.resource</artifactId>
+      <scope>provided</scope>
+    </dependency>
   </dependencies>
 
   <build>

Reply via email to