Skip to content

Commit

Permalink
META-3129 Replace log4j1 dependencies with reload4j
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon-atlan committed Sep 7, 2022
1 parent 75d5d91 commit ff88f74
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 39 deletions.
6 changes: 3 additions & 3 deletions agents-audit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
Expand Down
6 changes: 3 additions & 3 deletions agents-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
6 changes: 3 additions & 3 deletions agents-cred/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
2 changes: 1 addition & 1 deletion distro/src/main/assembly/admin-web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
<include>org.apache.tomcat.embed:tomcat-embed*</include>
<include>org.apache.tomcat:tomcat-annotations-api*</include>
<include>org.eclipse.jdt.core.compiler:ecj:jar:P20140317-1600</include>
<include>log4j:log4j</include>
<include>ch.qos.reload4j:reload4j</include>
<include>org.apache.hadoop:hadoop-auth:jar:${hadoop.version}</include>
<include>org.apache.ranger:ranger-plugins-common</include>
<include>org.slf4j:slf4j-api</include>
Expand Down
3 changes: 2 additions & 1 deletion distro/src/main/assembly/tagsync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
<include>commons-logging:commons-logging:jar:${commons.logging.version}</include>
<include>javax.inject:javax.inject:jar:${javax-inject.version}</include>
<include>joda-time:joda-time:jar:${joda-time.version}</include>
<include>log4j:log4j:jar:${log4j.version}</include>
<!-- <include>log4j:log4j:jar:${log4j.version}</include>-->
<include>ch.qos.reload4j:reload4j:jar:${reload4j.version}</include>
<include>org.codehaus.woodstox:stax2-api</include>
<include>com.fasterxml.woodstox:woodstox-core</include>
<include>org.apache.htrace:htrace-core4</include>
Expand Down
6 changes: 3 additions & 3 deletions embeddedwebserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
<version>P20140317-1600</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
Expand Down
6 changes: 3 additions & 3 deletions kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@
<kylin.version>2.6.4</kylin.version>
<libpam4j.version>1.10</libpam4j.version>
<local.lib.dir>${project.basedir}/../lib/local</local.lib.dir>
<log4j.version>1.2.17</log4j.version>
<!-- <log4j.version>1.2.17</log4j.version>-->
<reload4j.version>1.2.19</reload4j.version>
<maven.exec.plugin.version>1.6.0</maven.exec.plugin.version>
<maven.pmd.plugin.version>3.7</maven.pmd.plugin.version>
<metrics.core.version>3.0.2</metrics.core.version>
Expand Down
6 changes: 3 additions & 3 deletions ranger-examples/sampleapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<version>${commons.logging.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
</dependencies>
</project>
30 changes: 27 additions & 3 deletions security-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -377,9 +381,9 @@
<version>${javax.servlet.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
Expand Down Expand Up @@ -495,6 +499,10 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -519,6 +527,10 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -530,6 +542,12 @@
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-plugins-common</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ranger</groupId>
Expand Down Expand Up @@ -596,6 +614,12 @@
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${zookeeper.version}</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
Expand Down
6 changes: 3 additions & 3 deletions tagsync/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<artifactId>mockito-core</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
6 changes: 3 additions & 3 deletions ugsync-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<description>User Group Synchronizer Util</description>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
6 changes: 3 additions & 3 deletions ugsync/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<description>User, Group sync from sources such as Unix and LDAP</description>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
6 changes: 3 additions & 3 deletions unixauthclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<description>Unix authentication client</description>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
6 changes: 3 additions & 3 deletions unixauthservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId>
<version>${reload4j.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down

0 comments on commit ff88f74

Please sign in to comment.