Skip to content

Commit

Permalink
PHOENIX-6636 Replace bundled log4j libraries with reload4j
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Jan 31, 2022
1 parent faa5da8 commit 4c26eaa
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 16 deletions.
2 changes: 1 addition & 1 deletion phoenix-assembly/src/build/package-to-tar-all.xml
Expand Up @@ -36,7 +36,7 @@
<unpack>false</unpack>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>org.slf4j:slf4j-log4j12</include>
<include>org.slf4j:slf4j-reload4j</include>
</includes>
</dependencySet>
</dependencySets>
Expand Down
13 changes: 13 additions & 0 deletions phoenix-client-parent/phoenix-client-embedded/pom.xml
Expand Up @@ -70,10 +70,23 @@
<groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-core</artifactId>
<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>
Expand Down
6 changes: 3 additions & 3 deletions phoenix-client-parent/phoenix-client/pom.xml
Expand Up @@ -77,12 +77,12 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<artifactId>slf4j-reload4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion phoenix-core/pom.xml
Expand Up @@ -194,7 +194,7 @@
<artifactItems>
<artifactItem>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<artifactId>slf4j-reload4j</artifactId>
</artifactItem>
<artifactItem>
<groupId>sqlline</groupId>
Expand Down
2 changes: 2 additions & 0 deletions phoenix-server/pom.xml
Expand Up @@ -117,8 +117,10 @@
<exclude>org.apache.phoenix:phoenix-server</exclude>
<exclude>sqlline:sqlline</exclude>
<exclude>log4j:log4j</exclude>
<exclude>ch.qos.reload4j:reload4j</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
<exclude>org.slf4j:slf4j-log4j12</exclude>
<exclude>org.slf4j:slf4j-reload4j</exclude>
</excludes>
</artifactSet>
<filters>
Expand Down
4 changes: 2 additions & 2 deletions phoenix-tracing-webapp/pom.xml
Expand Up @@ -62,8 +62,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>
Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Expand Up @@ -99,9 +99,9 @@
<!-- Dependency versions -->
<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.18.3</reload4j.version>
<disruptor.version>3.3.6</disruptor.version>
<slf4j.version>1.7.25</slf4j.version>
<slf4j.version>1.7.35</slf4j.version>
<!-- com.google repo will be used except on Aarch64 platform. -->
<protobuf.group>com.google.protobuf</protobuf.group>
<protobuf-java.version>2.5.0</protobuf-java.version>
Expand Down Expand Up @@ -373,7 +373,7 @@
org.apache.omid:omid-timestamp-storage-hbase2.x
</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>
org.slf4j:slf4j-log4j12
org.slf4j:slf4j-reload4j
</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>
org.apache.hbase:hbase-testing-util
Expand Down Expand Up @@ -1482,15 +1482,15 @@
</dependency>

<!-- Runtime dependencies -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<scope>runtime</scope>
<dependency>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<artifactId>slf4j-reload4j</artifactId>
<version>${slf4j.version}</version>
<scope>runtime</scope>
</dependency>
Expand Down

0 comments on commit 4c26eaa

Please sign in to comment.