You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2022/02/25 12:09:31 UTC
[phoenix] branch 4.x updated: PHOENIX-6636 Replace bundled log4j libraries with reload4j
This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x by this push:
new a404c23 PHOENIX-6636 Replace bundled log4j libraries with reload4j
a404c23 is described below
commit a404c236092a16a4eb2dde9a835f6a452ba5f8a2
Author: Istvan Toth <st...@apache.org>
AuthorDate: Mon Jan 31 12:48:12 2022 +0100
PHOENIX-6636 Replace bundled log4j libraries with reload4j
---
phoenix-assembly/src/build/package-to-tar-all.xml | 3 +-
.../phoenix-client-embedded/pom.xml | 13 +++++++
phoenix-client-parent/phoenix-client/pom.xml | 14 +++++--
phoenix-core/pom.xml | 10 ++---
phoenix-tracing-webapp/pom.xml | 4 +-
pom.xml | 45 ++++++++++++++++++----
6 files changed, 69 insertions(+), 20 deletions(-)
diff --git a/phoenix-assembly/src/build/package-to-tar-all.xml b/phoenix-assembly/src/build/package-to-tar-all.xml
index f64ace9..e03d4e8 100644
--- a/phoenix-assembly/src/build/package-to-tar-all.xml
+++ b/phoenix-assembly/src/build/package-to-tar-all.xml
@@ -36,7 +36,8 @@
<unpack>false</unpack>
<outputDirectory>/lib</outputDirectory>
<includes>
- <include>org.slf4j:slf4j-log4j12</include>
+ <include>org.slf4j:slf4j-reload4j</include>
+ <include>ch.qos.reload4j:reload4j</include>
</includes>
</dependencySet>
</dependencySets>
diff --git a/phoenix-client-parent/phoenix-client-embedded/pom.xml b/phoenix-client-parent/phoenix-client-embedded/pom.xml
index b487027..4a4d402 100644
--- a/phoenix-client-parent/phoenix-client-embedded/pom.xml
+++ b/phoenix-client-parent/phoenix-client-embedded/pom.xml
@@ -73,8 +73,21 @@
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
+ <artifactId>slf4j-reload4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>ch.qos.reload4j</groupId>
+ <artifactId>reload4j</artifactId>
+ </exclusion>
+ <!-- These are coming from transitive dependencies -->
+ <exclusion>
+ <groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
diff --git a/phoenix-client-parent/phoenix-client/pom.xml b/phoenix-client-parent/phoenix-client/pom.xml
index 8278e06..007d949 100644
--- a/phoenix-client-parent/phoenix-client/pom.xml
+++ b/phoenix-client-parent/phoenix-client/pom.xml
@@ -77,12 +77,18 @@
<optional>false</optional>
</dependency>
<dependency>
- <groupId>sqlline</groupId>
- <artifactId>sqlline</artifactId>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-reload4j</artifactId>
+ <scope>runtime</scope>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
+ <groupId>ch.qos.reload4j</groupId>
+ <artifactId>reload4j</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>sqlline</groupId>
+ <artifactId>sqlline</artifactId>
</dependency>
</dependencies>
diff --git a/phoenix-core/pom.xml b/phoenix-core/pom.xml
index ff2bd66..39ef14d 100644
--- a/phoenix-core/pom.xml
+++ b/phoenix-core/pom.xml
@@ -178,8 +178,12 @@
<configuration>
<artifactItems>
<artifactItem>
+ <groupId>ch.qos.reload4j</groupId>
+ <artifactId>reload4j</artifactId>
+ </artifactItem>
+ <artifactItem>
<groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
+ <artifactId>slf4j-reload4j</artifactId>
</artifactItem>
<artifactItem>
<groupId>sqlline</groupId>
@@ -347,10 +351,6 @@
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </dependency>
- <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
diff --git a/phoenix-tracing-webapp/pom.xml b/phoenix-tracing-webapp/pom.xml
index 31ca4a5..1d4291b 100755
--- a/phoenix-tracing-webapp/pom.xml
+++ b/phoenix-tracing-webapp/pom.xml
@@ -61,8 +61,8 @@
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
+ <groupId>ch.qos.reload4j</groupId>
+ <artifactId>reload4j</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
diff --git a/pom.xml b/pom.xml
index e2034c6..46345f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -95,9 +95,9 @@
<hadoop.version>2.7.1</hadoop.version>
<jackson.version>2.12.4</jackson.version>
<antlr.version>3.5.2</antlr.version>
- <log4j.version>1.2.17</log4j.version>
+ <reload4j.version>1.2.19</reload4j.version>
<disruptor.version>3.3.6</disruptor.version>
- <slf4j.version>1.6.4</slf4j.version>
+ <slf4j.version>1.7.36</slf4j.version>
<commons-io.version>2.6</commons-io.version>
<commons-lang.version>2.5</commons-lang.version>
<!-- com.google repo will be used except on Aarch64 platform. -->
@@ -1075,18 +1075,13 @@
<version>${protobuf-java.version}</version>
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
+ <artifactId>slf4j-reload4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
@@ -1170,6 +1165,40 @@
</exclusion>
</exclusions>
</dependency>
+
+ <!-- Other test dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>${mockito.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- Runtime dependencies -->
+ <dependency>
+ <groupId>ch.qos.reload4j</groupId>
+ <artifactId>reload4j</artifactId>
+ <version>${reload4j.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-reload4j</artifactId>
+ <version>${slf4j.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>sqlline</groupId>
+ <artifactId>sqlline</artifactId>
+ <version>${sqlline.version}</version>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
</dependencyManagement>