Skip to content

Commit e64da03

Browse files
authored
[deps](log4j) Upgrade log4j 2 to 2.16.0 (#7394)
Upgrade log4j 2 to 2.16.0, the official strongly recommends upgrading to this version
1 parent d9c927f commit e64da03

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

fe/fe-core/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ under the License.
3838
<doris.home>${basedir}/../../</doris.home>
3939
<fe_ut_parallel>1</fe_ut_parallel>
4040
<doris.thirdparty>${basedir}/../../thirdparty</doris.thirdparty>
41+
<log4j2.version>2.16.0</log4j2.version>
4142
</properties>
4243

4344
<profiles>
@@ -74,7 +75,7 @@ under the License.
7475
<dependency>
7576
<groupId>org.apache.logging.log4j</groupId>
7677
<artifactId>log4j-web</artifactId>
77-
<version>2.15.0</version>
78+
<version>${log4j2.version}</version>
7879
</dependency>
7980
<dependency>
8081
<groupId>org.springframework.boot</groupId>
@@ -252,18 +253,21 @@ under the License.
252253
<dependency>
253254
<groupId>org.apache.logging.log4j</groupId>
254255
<artifactId>log4j-api</artifactId>
256+
<version>${log4j2.version}</version>
255257
</dependency>
256258

257259
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
258260
<dependency>
259261
<groupId>org.apache.logging.log4j</groupId>
260262
<artifactId>log4j-core</artifactId>
263+
<version>${log4j2.version}</version>
261264
</dependency>
262265

263266
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
264267
<dependency>
265268
<groupId>org.apache.logging.log4j</groupId>
266269
<artifactId>log4j-slf4j-impl</artifactId>
270+
<version>${log4j2.version}</version>
267271
</dependency>
268272

269273
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->

fe/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ under the License.
5454
<hive.version>2.3.7</hive.version>
5555
<hadoop.version>2.8.0</hadoop.version>
5656
<jmockit.version>1.49</jmockit.version>
57+
<log4j2.version>2.16.0</log4j2.version>
5758
</properties>
5859

5960
<profiles>
@@ -310,21 +311,21 @@ under the License.
310311
<dependency>
311312
<groupId>org.apache.logging.log4j</groupId>
312313
<artifactId>log4j-api</artifactId>
313-
<version>2.15.0</version>
314+
<version>${log4j2.version}</version>
314315
</dependency>
315316

316317
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
317318
<dependency>
318319
<groupId>org.apache.logging.log4j</groupId>
319320
<artifactId>log4j-core</artifactId>
320-
<version>2.15.0</version>
321+
<version>${log4j2.version}</version>
321322
</dependency>
322323

323324
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
324325
<dependency>
325326
<groupId>org.apache.logging.log4j</groupId>
326327
<artifactId>log4j-slf4j-impl</artifactId>
327-
<version>2.15.0</version>
328+
<version>${log4j2.version}</version>
328329
</dependency>
329330

330331
<!-- https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-core -->

fe_plugins/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ under the License.
3434

3535
<properties>
3636
<doris.home>${env.DORIS_HOME}</doris.home>
37+
<log4j2.version>2.16.0</log4j2.version>
3738
</properties>
3839
<profiles>
3940
<!-- for custom internal repository -->
@@ -82,21 +83,21 @@ under the License.
8283
<dependency>
8384
<groupId>org.apache.logging.log4j</groupId>
8485
<artifactId>log4j-api</artifactId>
85-
<version>2.15.0</version>
86+
<version>${log4j2.version}</version>
8687
</dependency>
8788

8889
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
8990
<dependency>
9091
<groupId>org.apache.logging.log4j</groupId>
9192
<artifactId>log4j-core</artifactId>
92-
<version>2.15.0</version>
93+
<version>${log4j2.version}</version>
9394
</dependency>
9495

9596
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl -->
9697
<dependency>
9798
<groupId>org.apache.logging.log4j</groupId>
9899
<artifactId>log4j-slf4j-impl</artifactId>
99-
<version>2.15.0</version>
100+
<version>${log4j2.version}</version>
100101
</dependency>
101102

102103
<!-- https://mvnrepository.com/artifact/log4j/log4j -->

fs_brokers/apache_hdfs_broker/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ under the License.
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737
<maven.compiler.source>1.8</maven.compiler.source>
3838
<maven.compiler.target>1.8</maven.compiler.target>
39+
<log4j2.version>2.16.0</log4j2.version>
3940
</properties>
4041

4142
<profiles>
@@ -227,14 +228,14 @@ under the License.
227228
<dependency>
228229
<groupId>org.apache.logging.log4j</groupId>
229230
<artifactId>log4j-api</artifactId>
230-
<version>2.15.0</version>
231+
<version>${log4j2.version}</version>
231232
</dependency>
232233

233234
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
234235
<dependency>
235236
<groupId>org.apache.logging.log4j</groupId>
236237
<artifactId>log4j-core</artifactId>
237-
<version>2.15.0</version>
238+
<version>${log4j2.version}</version>
238239
</dependency>
239240

240241
<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->

0 commit comments

Comments
 (0)