-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
pom.xml
1087 lines (943 loc) · 39.3 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to you under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" child.project.url.inherit.append.path="false" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<!-- ██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████ ██
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██ ██
██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████ ██
Log4j project modules should use `log4j-parent` as their parents, not this POM!
This POM constitutes the BOM to be imported by applications using Log4j project modules. -->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.logging</groupId>
<artifactId>logging-parent</artifactId>
<version>11.3.0</version>
<relativePath />
</parent>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-bom</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>Apache Log4j BOM</name>
<description>Apache Log4j Bill-of-Materials</description>
<url>https://logging.apache.org/log4j/2.x/</url>
<inceptionYear>1999</inceptionYear>
<developers>
<developer>
<id>rgoers</id>
<name>Ralph Goers</name>
<email>[email protected]</email>
<organization>Nextiva</organization>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/Phoenix</timezone>
</developer>
<developer>
<id>ggregory</id>
<name>Gary Gregory</name>
<email>[email protected]</email>
<url>https://www.garygregory.com</url>
<organization>The Apache Software Foundation</organization>
<organizationUrl>https://www.apache.org/</organizationUrl>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/New_York</timezone>
</developer>
<developer>
<id>sdeboy</id>
<name>Scott Deboy</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/Los_Angeles</timezone>
</developer>
<developer>
<id>rpopma</id>
<name>Remko Popma</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>Asia/Tokyo</timezone>
</developer>
<developer>
<id>nickwilliams</id>
<name>Nick Williams</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/Chicago</timezone>
</developer>
<developer>
<id>mattsicker</id>
<name>Matt Sicker</name>
<email>[email protected]</email>
<organization>Apple</organization>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/Chicago</timezone>
</developer>
<developer>
<id>bbrouwer</id>
<name>Bruce Brouwer</name>
<email>[email protected]</email>
<roles>
<role>Committer</role>
</roles>
<timezone>America/Detroit</timezone>
</developer>
<developer>
<id>rgupta</id>
<name>Raman Gupta</name>
<email>[email protected]</email>
<roles>
<role>Committer</role>
</roles>
<timezone>America/New York</timezone>
</developer>
<developer>
<id>mikes</id>
<name>Mikael Ståldal</name>
<email>[email protected]</email>
<organization>Spotify</organization>
<roles>
<role>PMC Member</role>
</roles>
<timezone>Europe/Stockholm</timezone>
</developer>
<developer>
<id>ckozak</id>
<name>Carter Kozak</name>
<email>[email protected]</email>
<url>https://github.com/carterkozak</url>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/New York</timezone>
</developer>
<developer>
<id>vy</id>
<name>Volkan Yazıcı</name>
<email>[email protected]</email>
<roles>
<role>PMC Chair</role>
</roles>
<timezone>Europe/Amsterdam</timezone>
</developer>
<developer>
<id>rgrabowski</id>
<name>Ron Grabowski</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>America/New_York</timezone>
</developer>
<developer>
<id>pkarwasz</id>
<name>Piotr P. Karwasz</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>Europe/Warsaw</timezone>
</developer>
<developer>
<id>grobmeier</id>
<name>Christian Grobmeier</name>
<email>[email protected]</email>
<roles>
<role>PMC Member</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
</developers>
<mailingLists>
<mailingList>
<name>log4j-user</name>
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
<post>[email protected]</post>
<archive>https://lists.apache.org/[email protected]</archive>
</mailingList>
<mailingList>
<name>dev</name>
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
<post>[email protected]</post>
<archive>https://lists.apache.org/[email protected]</archive>
</mailingList>
<mailingList>
<name>security</name>
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
<post>[email protected]</post>
<archive>https://lists.apache.org/[email protected]</archive>
</mailingList>
</mailingLists>
<modules>
<!-- the parent POM must come first: -->
<module>log4j-parent</module>
<!-- Next unpublished, but internally and *implicitly* (e.g., as a plugin dependency) consumed modules in alphabetical order: -->
<module>log4j-api-java9</module>
<module>log4j-core-java9</module>
<!-- Last comes the rest of the modules in alphabetical order.
Note that modules here must have a corresponding entry in `dependencyManagement > dependencies` block below! -->
<module>log4j-1.2-api</module>
<module>log4j-api</module>
<module>log4j-api-test</module>
<module>log4j-appserver</module>
<module>log4j-cassandra</module>
<module>log4j-core</module>
<module>log4j-core-fuzz-test</module>
<module>log4j-core-its</module>
<module>log4j-core-test</module>
<module>log4j-couchdb</module>
<module>log4j-docker</module>
<module>log4j-fuzz-test</module>
<module>log4j-iostreams</module>
<module>log4j-jakarta-jms</module>
<module>log4j-jakarta-smtp</module>
<module>log4j-jakarta-web</module>
<module>log4j-jcl</module>
<module>log4j-jpa</module>
<module>log4j-jpl</module>
<module>log4j-jdbc-dbcp2</module>
<module>log4j-jul</module>
<module>log4j-layout-template-json</module>
<module>log4j-layout-template-json-fuzz-test</module>
<module>log4j-layout-template-json-test</module>
<module>log4j-mongodb</module>
<module>log4j-mongodb4</module>
<module>log4j-osgi-test</module>
<module>log4j-perf-test</module>
<module>log4j-slf4j-impl</module>
<module>log4j-slf4j2-impl</module>
<module>log4j-slf4j2-impl-fuzz-test</module>
<module>log4j-spring-boot</module>
<module>log4j-spring-cloud-config-client</module>
<module>log4j-taglib</module>
<module>log4j-to-slf4j</module>
<module>log4j-to-jul</module>
<module>log4j-web</module>
</modules>
<scm child.scm.connection.inherit.append.path="false" child.scm.developerConnection.inherit.append.path="false" child.scm.url.inherit.append.path="false">
<connection>scm:git:https://github.com/apache/logging-log4j2.git</connection>
<developerConnection>scm:git:https://github.com/apache/logging-log4j2.git</developerConnection>
<tag>2.x</tag>
<url>https://github.com/apache/logging-log4j2</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/apache/logging-log4j2/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub Actions</system>
<url>https://github.com/apache/logging-log4j2/actions</url>
</ciManagement>
<distributionManagement>
<!-- `site` is only included to make `maven-site-plugin` stop complaining: -->
<site>
<id>www.example.com</id>
<url>scp://www.example.com/www/docs/project/</url>
</site>
<downloadUrl>https://logging.apache.org/log4j/2.x/download.html</downloadUrl>
<!-- `repository` from ASF parent POM (id: apache.releases.https) -->
<!-- `snapshotRepository` from ASF parent POM (id: apache.snapshots.https) -->
</distributionManagement>
<properties>
<!-- project version -->
<revision>2.25.0-SNAPSHOT</revision>
<!-- Versions used on the site: no snapshots! -->
<site-log4j-api.version>2.24.3</site-log4j-api.version>
<site-log4j-core.version>2.24.3</site-log4j-core.version>
<site-log4j-layout-template-json.version>2.24.3</site-log4j-layout-template-json.version>
<!-- =================
Common properties
================= -->
<module.name />
<!-- `project.build.outputTimestamp` is required to be present for reproducible builds.
We actually inherit one from the `org.apache:apache` through our parent `org.apache.logging:logging-parent`.
Though inheriting this property has two undesired consequences:
1. `artifact:compare` dumps an `ERROR` log stating that this `property should not be inherited but defined` (apache/logging-parent#50)
2. This value is employed in various places while creating the distribution
To mitigate these, we define a *dummy* value here and let the CI replace it during a release.
Hence, *DO NOT MANUALLY EDIT THIS VALUE*! -->
<project.build.outputTimestamp>2024-12-10T10:15:05Z</project.build.outputTimestamp>
<!-- ========================
Site-specific properties
======================== -->
<!-- `maven-javadoc-plugin` is only used to generate Javadoc HTML used in the website.
We don't deploy any Javadoc JARs.
We also don't generate Javadoc HTML for all modules, but only for two modules: `log4j-api` and `log4j-core`.
Hence, we disable it by default: -->
<maven.javadoc.skip>true</maven.javadoc.skip>
<doclint>all,-missing,-html</doclint>
<!-- Skipping `maven-site-plugin` globally. -->
<maven.site.skip>true</maven.site.skip>
<maven.site.deploy.skip>true</maven.site.deploy.skip>
<site-commons-compress.version>1.27.1</site-commons-compress.version>
<site-commons-csv.version>1.12.0</site-commons-csv.version>
<site-commons-logging.version>1.3.4</site-commons-logging.version>
<site-conversant.version>1.2.21</site-conversant.version>
<site-disruptor.version>4.0.0</site-disruptor.version>
<site-flume.version>1.11.0</site-flume.version>
<site-jackson.version>2.18.2</site-jackson.version>
<site-javax-mail.version>1.6.2</site-javax-mail.version>
<site-jctools.version>4.0.5</site-jctools.version>
<site-je.version>18.3.12</site-je.version>
<site-jeromq.version>0.6.0</site-jeromq.version>
<site-kafka.version>3.9.0</site-kafka.version>
<site-logback.version>1.5.5</site-logback.version>
<site-slf4j.version>2.0.16</site-slf4j.version>
<!-- =====================================================
Direct dependency version properties (in alphabetical order)
===================================================== -->
<log4j-docgen.version>0.9.0</log4j-docgen.version>
<node.version>21.7.1</node.version>
<npm.version>10.5.0</npm.version>
<!-- ==================================
`log4j-docgen`-specific properties
================================== -->
<!-- `log4j-docgen` qualified class name exclude pattern -->
<log4j.docgen.typeFilter.excludePattern>^java\..+</log4j.docgen.typeFilter.excludePattern>
<!-- Directories where `log4j-docgen` annotation processor will emit files to -->
<log4j.docgen.pluginDescriptorsDir.phase1>${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase1</log4j.docgen.pluginDescriptorsDir.phase1>
<log4j.docgen.pluginDescriptorsDir.phase2>${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase2</log4j.docgen.pluginDescriptorsDir.phase2>
<!-- Downgrade temporarily Maven Surefire, since it breaks tests statistics on `ge.apache.org` -->
<version.maven-surefire>3.2.5</version.maven-surefire>
</properties>
<dependencyManagement>
<dependencies>
<!-- List of managed dependencies (in alphabetical order) that are intended for public consumption.
Modules that are not used anywhere (e.g., `log4j-core-its`, `log4j-osgi-test`) should not be placed here.
Modules that are used only internally (e.g., `log4j-layout-template-json-test`) should be added to `dependencyManagement > dependencies` in `log4j-parent/pom.xml`. -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api-test</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-appserver</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-cassandra</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core-test</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-couchdb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-docker</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-flume-ng</artifactId>
<version>2.23.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-iostreams</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jakarta-jms</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jakarta-smtp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jakarta-web</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jpa</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jpl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-layout-template-json</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-mongodb4</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-mongodb</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-spring-boot</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-spring-cloud-config-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-taglib</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-jul</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<!-- Enable BOM flattening -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<executions>
<execution>
<id>flatten-bom</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
<inherited>false</inherited>
</execution>
</executions>
</plugin>
<!-- Apache RAT (Release Audit Tool) check to verify licenses.
`apache-rat-plugin`: https://creadur.apache.org/rat/apache-rat-plugin/
Release Audit Tool: https://creadur.apache.org/rat/index.html -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.16.1</version>
<configuration>
<consoleOutput>true</consoleOutput>
<excludes combine.children="append">
<!-- Matches other RAT configurations in this POM -->
<exclude>src/main/resources/META-INF/services/**/*</exclude>
<exclude>src/test/resources/**/*</exclude>
<!-- IDE settings imports -->
<exclude>src/ide/**</exclude>
<!-- Font Awesome License (Font: SIL OFL 1.1, CSS: MIT License)-->
<exclude>src/site/resources/font-awesome-4.7.0/css/font-awesome.css</exclude>
<exclude>src/site/resources/font-awesome-4.7.0/css/font-awesome.min.css</exclude>
<exclude>src/site/resources/font-awesome-4.7.0/fonts/fontawesome-webfont.svg</exclude>
<!-- Generated files -->
<exclude>**/.toDelete</exclude>
<exclude>velocity.log</exclude>
<!-- Other -->
<exclude>**/README.md</exclude>
<exclude>SECURITY.md</exclude>
<exclude>**/*.yml</exclude>
<exclude>**/*.yaml</exclude>
<exclude>**/*.json</exclude>
<excllude>**/images/*.drawio</excllude>
<exclude>**/fluent-bit.conf</exclude>
<exclude>**/rabbitmq.config</exclude>
<exclude>**/MANIFEST.MF</exclude>
<exclude>.surefire-*</exclude>
<exclude>**/.log4j-*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1C</forkCount>
<reuseForks>false</reuseForks>
<runOrder>random</runOrder>
<systemPropertyVariables>
<java.awt.headless>true</java.awt.headless>
</systemPropertyVariables>
</configuration>
</plugin>
<!--
~ Adds Antora examples to the list of checked files
-->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
<include>src/site/antora/modules/ROOT/examples/**/*.java</include>
</includes>
</java>
</configuration>
</plugin>
<!-- ███████ ████████ █████ ██████ ████████ ███████ ██ ████████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ███████ ██████ ██ ███████ ██ ██ █████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ██ ██ ██ ██ ███████ ██ ██ ███████
This section consists of plugins responsible for generating the site.
Note that only this (i.e., the root) module is supposed to have a `site` goal, it is skipped for all other modules! -->
<!-- Define `currentYear` property used by the `maven-javadoc-plugin` configuration -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>define-currentYear-property</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>pre-site</phase>
<inherited>false</inherited>
<configuration>
<name>currentYear</name>
<pattern>yyyy</pattern>
<locale>en_US</locale>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>generate-site-javadoc</id>
<goals>
<goal>javadoc-no-fork</goal>
</goals>
<phase>pre-site</phase>
<!-- This execution must be inherited and enabled by modules publishing javadocs: `-api` and `-core`.
Such modules enable this execution via `maven.javadoc.skip` property.
Hence, don't insert a `<inherited>false</inherited>`, please! -->
<configuration combine.self="override">
<!-- `notimestamp` avoids `diff` noise and is required for reproducible builds: https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
<notimestamp>true</notimestamp>
<skip>${maven.javadoc.skip}</skip>
<legacyMode>true</legacyMode>
<bottom><![CDATA[<p align="center">
Copyright © {inceptionYear}-{currentYear} {organizationName}.
All Rights Reserved.<br/>
Apache, Log4j, and the Apache feather logo are trademarks or registered trademarks of {organizationName}.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
</p>]]></bottom>
<offlineLinks>
<link>
<url>https://logging.apache.org/log4j/2.x/javadoc/log4j-api</url>
<location>${maven.multiModuleProjectDirectory}/log4j-api/target/site/apidocs/</location>
</link>
<link>
<url>https://logging.apache.org/log4j/2.x/javadoc/log4j-core</url>
<location>${maven.multiModuleProjectDirectory}/log4j-core/target/site/apidocs/</location>
</link>
</offlineLinks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<!-- These are dummy dependencies!
They are not used anywhere while running `maven-resources-plugin`.
`filter-antora-yml` execution above injects these `*.version` properties into `antora.yml`.
Later on, we use them in the manual while referencing to Maven artifacts with their versions.
We need these `<dependency>` entries to trick `dependabot` to update the version properties automatically.
No, we cannot use `${project.version}`, because it is not released yet. -->
<dependencies>
<!-- Other dependencies -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${site-commons-compress.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>${site-commons-csv.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${site-commons-logging.version}</version>
</dependency>
<dependency>
<groupId>com.conversantmedia</groupId>
<artifactId>disruptor</artifactId>
<version>${site-conversant.version}</version>
</dependency>
<dependency>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>
<version>${site-disruptor.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flume</groupId>
<artifactId>flume-ng-embedded-agent</artifactId>
<version>${site-flume.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${site-jackson.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>${site-javax-mail.version}</version>
</dependency>
<dependency>
<groupId>org.jctools</groupId>
<artifactId>jctools-core</artifactId>
<version>${site-jctools.version}</version>
</dependency>
<dependency>
<groupId>com.sleepycat</groupId>
<artifactId>je</artifactId>
<version>${site-je.version}</version>
</dependency>
<dependency>
<groupId>org.zeromq</groupId>
<artifactId>jeromq</artifactId>
<version>${site-jeromq.version}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${site-kafka.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${site-logback.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${site-slf4j.version}</version>
</dependency>
</dependencies>
<executions>
<!-- Process `target/antora-yml` and output to `target/generated-site/antora` -->
<execution>
<id>filter-antora-yml</id>
</execution>
<!-- Copy `src/site` to `target/generated-site` -->
<execution>
<id>copy-site</id>
</execution>
<!-- Copy `target/site/apidocs` to the root module's `target/site/javadoc/<artifactId>` folder -->
<execution>
<id>copy-javadoc</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>site</phase>
<!-- This execution must be inherited and enabled by modules publishing javadocs: `-api` and `-core`.
Such modules enable this execution via `maven.javadoc.skip` property.
Hence, don't insert a `<inherited>false</inherited>`, please! -->
<configuration>
<skip>${maven.javadoc.skip}</skip>
<outputDirectory>${maven.multiModuleProjectDirectory}/target/site/javadoc/${project.artifactId}</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/site/apidocs</directory>
</resource>
</resources>
</configuration>
</execution>
<!-- Copies the static resources in `src/site/resources` directly to `target/site`.
These resources are not handled by Antora. -->
<execution>
<id>copy-site-resources</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>site</phase>
<configuration>
<resources>
<resource>
<directory>src/site/resources</directory>
</resource>
</resources>
<outputDirectory>target/site</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-docgen-maven-plugin</artifactId>
<version>${log4j-docgen.version}</version>
<inherited>false</inherited>
<!-- Common docgen configuration -->
<configuration>
<!-- Descriptor processing order matters!
Imagine we place all descriptors to the same folder.
Assume that the filesystem walks folder contents in alphanumeric order.
Sourcing `log4j-docgen:generate-*` from that folder will consume descriptors in the following order:
1. `log4j-1.2.api`
2. `log4j-cassandra`
3. `log4j-core`
4. ...
For instance, `AbstractFilterable` is defined by the descriptors of both `log4j-cassandra` and `log4j-core`.
Due to alphanumeric scanning order, it will appear as it is provided by `log4j-cassandra`.
Though, it is actually provided by `log4j-core`.
To avoid this problem, we place descriptors to folders associated with phases.
We pass the folder of each phase in a certain order to `log4j-docgen:generate-*`. -->
<descriptorFileMatchers>
<descriptorFileMatcher>
<baseDirectory>${log4j.docgen.pluginDescriptorsDir.phase1}</baseDirectory>
</descriptorFileMatcher>
<descriptorFileMatcher>
<baseDirectory>${log4j.docgen.pluginDescriptorsDir.phase2}</baseDirectory>
</descriptorFileMatcher>
</descriptorFileMatchers>
<typeFilter>
<excludes>
<exclude>${log4j.docgen.typeFilter.excludePattern}</exclude>
</excludes>
</typeFilter>
</configuration>
<executions>
<!-- Generate AsciiDoc from downloaded plugin descriptors -->
<execution>
<id>generate-plugin-docs</id>
<goals>
<goal>generate-documentation</goal>
</goals>
<phase>pre-site</phase>
<configuration>
<templateDirectory>${project.basedir}/src/docgen</templateDirectory>
<indexTemplates>
<template>
<source>index.adoc.ftl</source>
<target>${project.build.directory}/generated-site/antora/modules/ROOT/pages/plugin-reference.adoc</target>
</template>
</indexTemplates>
<typeTemplates>
<template>
<source>type.adoc.ftl</source>
<target>${project.build.directory}/generated-site/antora/modules/ROOT/pages/_plugin-reference/%g-%a-%c.adoc</target>
</template>
</typeTemplates>
</configuration>
</execution>
<!-- Generate XSD from downloaded plugin descriptors -->
<execution>
<id>generate-plugin-schema</id>
<goals>
<goal>generate-schema</goal>
</goals>
<phase>site</phase>
<configuration>
<schemaVersion>${project.version}</schemaVersion>
<schemaFile>${project.build.directory}/log4j-config.xsd</schemaFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- ███████ ███ ██ ██████ ███████ ██ ████████ ███████
██ ████ ██ ██ ██ ██ ██ ██ ██ ██
█████ ██ ██ ██ ██ ██ ███████ ██ ██ █████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ████ ██████ ███████ ██ ██ ███████ -->
</plugins>
</build>
<profiles>
<!-- `java8-tests` profile to force using Java 8 while running tests -->
<profile>
<id>java8-tests</id>
<activation>
<property>
<name>env.CI</name>
<value>true</value>
</property>
</activation>
<!-- There are certain Java 8 bugs[1] that cause Mockito failures[2].
Adding necessary dependencies to workaround them.
[1] https://bugs.openjdk.org/browse/JDK-8152174
[2] https://github.com/mockito/mockito/issues/1449 -->
<dependencies>
<dependency>
<groupId>org.jspecify</groupId>
<artifactId>jspecify</artifactId>
<version>${jspecify.version}</version>
</dependency>
</dependencies>
<build>
<plugins>