This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release/2.21.0
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release/2.21.0 by this push:
     new e4e4863202 Add `log4j-core` to some modules processor path
e4e4863202 is described below

commit e4e486320203d063beaf2da7323f1d47e7f63481
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Oct 6 12:52:17 2023 +0200

    Add `log4j-core` to some modules processor path
    
    Since the split between modules that have Log4j Core plugins and those
    that don't is about 50/50, it is more proper to add `log4j-core` to some
    modules instead of removing it from others (and copy/paste all other
    options).
---
 log4j-1.2-api/pom.xml                   | 23 +++++++++++++++++++++++
 log4j-api-java9/pom.xml                 | 10 ----------
 log4j-api-test/pom.xml                  | 15 ---------------
 log4j-api/pom.xml                       | 14 --------------
 log4j-appserver/pom.xml                 | 19 -------------------
 log4j-cassandra/pom.xml                 | 22 ++++++++++++++++++++++
 log4j-core-java9/pom.xml                | 10 ----------
 log4j-core-test/pom.xml                 | 23 +++++++++++++++++++++++
 log4j-couchdb/pom.xml                   | 22 ++++++++++++++++++++++
 log4j-docker/pom.xml                    | 22 ++++++++++++++++++++++
 log4j-flume-ng/pom.xml                  | 23 +++++++++++++++++++++++
 log4j-iostreams/pom.xml                 | 19 -------------------
 log4j-jakarta-web/pom.xml               | 22 ++++++++++++++++++++++
 log4j-jcl/pom.xml                       | 19 -------------------
 log4j-jdbc-dbcp2/pom.xml                | 22 ++++++++++++++++++++++
 log4j-jpa/pom.xml                       | 22 ++++++++++++++++++++++
 log4j-jpl/pom.xml                       | 19 -------------------
 log4j-kubernetes/pom.xml                | 22 ++++++++++++++++++++++
 log4j-layout-template-json-test/pom.xml | 19 ++++++++++++++++++-
 log4j-layout-template-json/pom.xml      | 18 ++++++++++++++++++
 log4j-mongodb3/pom.xml                  | 21 +++++++++++++++++++++
 log4j-mongodb4/pom.xml                  | 21 +++++++++++++++++++++
 log4j-osgi/pom.xml                      | 22 ++++++++++++++++++++++
 log4j-slf4j-impl/pom.xml                | 15 ---------------
 log4j-slf4j2-impl/pom.xml               | 15 ---------------
 log4j-spring-boot/pom.xml               | 22 ++++++++++++++++++++++
 log4j-to-jul/pom.xml                    | 20 --------------------
 log4j-to-slf4j/pom.xml                  | 19 -------------------
 log4j-web/pom.xml                       | 23 +++++++++++++++++++++++
 pom.xml                                 | 15 ---------------
 30 files changed, 368 insertions(+), 210 deletions(-)

diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml
index ef87feea56..7bbd4f07a1 100644
--- a/log4j-1.2-api/pom.xml
+++ b/log4j-1.2-api/pom.xml
@@ -139,4 +139,27 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-api-java9/pom.xml b/log4j-api-java9/pom.xml
index 8322ef1f91..60f465c357 100644
--- a/log4j-api-java9/pom.xml
+++ b/log4j-api-java9/pom.xml
@@ -70,16 +70,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
         <executions>
           <execution>
             <id>default-compile</id>
diff --git a/log4j-api-test/pom.xml b/log4j-api-test/pom.xml
index 1451491738..1064727462 100644
--- a/log4j-api-test/pom.xml
+++ b/log4j-api-test/pom.xml
@@ -133,21 +133,6 @@
   <build>
     <plugins>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml
index 73693471d0..c506301d7c 100644
--- a/log4j-api/pom.xml
+++ b/log4j-api/pom.xml
@@ -76,20 +76,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
diff --git a/log4j-appserver/pom.xml b/log4j-appserver/pom.xml
index e0b46ef94d..3271abeee3 100644
--- a/log4j-appserver/pom.xml
+++ b/log4j-appserver/pom.xml
@@ -72,23 +72,4 @@
       <artifactId>log4j-api</artifactId>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
 </project>
diff --git a/log4j-cassandra/pom.xml b/log4j-cassandra/pom.xml
index 9eef53dad7..24016c467f 100644
--- a/log4j-cassandra/pom.xml
+++ b/log4j-cassandra/pom.xml
@@ -120,4 +120,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-core-java9/pom.xml b/log4j-core-java9/pom.xml
index bbf58fc832..c7fd95688b 100644
--- a/log4j-core-java9/pom.xml
+++ b/log4j-core-java9/pom.xml
@@ -78,16 +78,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
         <executions>
           <execution>
             <id>default-compile</id>
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml
index e89e581215..106c4efeaa 100644
--- a/log4j-core-test/pom.xml
+++ b/log4j-core-test/pom.xml
@@ -355,4 +355,27 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-couchdb/pom.xml b/log4j-couchdb/pom.xml
index a68fa998d8..6c428c2c75 100644
--- a/log4j-couchdb/pom.xml
+++ b/log4j-couchdb/pom.xml
@@ -83,4 +83,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-docker/pom.xml b/log4j-docker/pom.xml
index f460b33168..4c5812a98d 100644
--- a/log4j-docker/pom.xml
+++ b/log4j-docker/pom.xml
@@ -70,4 +70,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-flume-ng/pom.xml b/log4j-flume-ng/pom.xml
index 292102728f..cccecbc3fa 100644
--- a/log4j-flume-ng/pom.xml
+++ b/log4j-flume-ng/pom.xml
@@ -114,4 +114,27 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-iostreams/pom.xml b/log4j-iostreams/pom.xml
index 11e10ecd19..9e74a3e715 100644
--- a/log4j-iostreams/pom.xml
+++ b/log4j-iostreams/pom.xml
@@ -74,23 +74,4 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
 </project>
diff --git a/log4j-jakarta-web/pom.xml b/log4j-jakarta-web/pom.xml
index 5ea82df3ab..84c90d9877 100644
--- a/log4j-jakarta-web/pom.xml
+++ b/log4j-jakarta-web/pom.xml
@@ -86,4 +86,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-jcl/pom.xml b/log4j-jcl/pom.xml
index f37edfcf04..345e2ad4e2 100644
--- a/log4j-jcl/pom.xml
+++ b/log4j-jcl/pom.xml
@@ -70,23 +70,4 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
 </project>
diff --git a/log4j-jdbc-dbcp2/pom.xml b/log4j-jdbc-dbcp2/pom.xml
index aece89210b..33e6047754 100644
--- a/log4j-jdbc-dbcp2/pom.xml
+++ b/log4j-jdbc-dbcp2/pom.xml
@@ -79,4 +79,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-jpa/pom.xml b/log4j-jpa/pom.xml
index 0aeeeb8270..8e2ed9383e 100644
--- a/log4j-jpa/pom.xml
+++ b/log4j-jpa/pom.xml
@@ -100,4 +100,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-jpl/pom.xml b/log4j-jpl/pom.xml
index 81f86bb471..b23275460c 100644
--- a/log4j-jpl/pom.xml
+++ b/log4j-jpl/pom.xml
@@ -65,25 +65,6 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-
   <profiles>
     <profile>
       <id>java8-tests</id>
diff --git a/log4j-kubernetes/pom.xml b/log4j-kubernetes/pom.xml
index 34a32863f6..d4b0a6f7cf 100644
--- a/log4j-kubernetes/pom.xml
+++ b/log4j-kubernetes/pom.xml
@@ -67,4 +67,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-layout-template-json-test/pom.xml 
b/log4j-layout-template-json-test/pom.xml
index 8d2bc5a3bb..00735de061 100644
--- a/log4j-layout-template-json-test/pom.xml
+++ b/log4j-layout-template-json-test/pom.xml
@@ -109,6 +109,24 @@
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
       <!-- Disable ITs, which are Docker-dependent, by default. -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -302,5 +320,4 @@
       </build>
     </profile>
   </profiles>
-
 </project>
diff --git a/log4j-layout-template-json/pom.xml 
b/log4j-layout-template-json/pom.xml
index 1b21df5b97..ba5f1884b3 100644
--- a/log4j-layout-template-json/pom.xml
+++ b/log4j-layout-template-json/pom.xml
@@ -59,6 +59,24 @@
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
       <!-- Disable ITs, which are Docker-dependent, by default. -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
diff --git a/log4j-mongodb3/pom.xml b/log4j-mongodb3/pom.xml
index 871a4b78a6..9b8c2e6b88 100644
--- a/log4j-mongodb3/pom.xml
+++ b/log4j-mongodb3/pom.xml
@@ -120,6 +120,26 @@
 
   <build>
     <plugins>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
@@ -140,6 +160,7 @@
           </dependency>
         </dependencies>
       </plugin>
+
     </plugins>
   </build>
 
diff --git a/log4j-mongodb4/pom.xml b/log4j-mongodb4/pom.xml
index 4aa2a494ee..47bcaf3214 100644
--- a/log4j-mongodb4/pom.xml
+++ b/log4j-mongodb4/pom.xml
@@ -109,6 +109,26 @@
 
   <build>
     <plugins>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
@@ -129,6 +149,7 @@
           </dependency>
         </dependencies>
       </plugin>
+
     </plugins>
   </build>
 
diff --git a/log4j-osgi/pom.xml b/log4j-osgi/pom.xml
index f394861fb2..1d5b529cc5 100644
--- a/log4j-osgi/pom.xml
+++ b/log4j-osgi/pom.xml
@@ -132,6 +132,7 @@
   </dependencies>
   <build>
     <plugins>
+
       <plugin>
         <groupId>org.ops4j.pax.exam</groupId>
         <artifactId>exam-maven-plugin</artifactId>
@@ -144,6 +145,26 @@
           </execution>
         </executions>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
@@ -156,6 +177,7 @@
           </systemPropertyVariables>
         </configuration>
       </plugin>
+
     </plugins>
   </build>
 </project>
diff --git a/log4j-slf4j-impl/pom.xml b/log4j-slf4j-impl/pom.xml
index 984bf87212..7fef5e6805 100644
--- a/log4j-slf4j-impl/pom.xml
+++ b/log4j-slf4j-impl/pom.xml
@@ -123,21 +123,6 @@
   <build>
     <plugins>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
diff --git a/log4j-slf4j2-impl/pom.xml b/log4j-slf4j2-impl/pom.xml
index 22e08bc53b..f0d4563299 100644
--- a/log4j-slf4j2-impl/pom.xml
+++ b/log4j-slf4j2-impl/pom.xml
@@ -115,21 +115,6 @@
   <build>
     <plugins>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
diff --git a/log4j-spring-boot/pom.xml b/log4j-spring-boot/pom.xml
index 92d31ebbad..15abf44c1e 100644
--- a/log4j-spring-boot/pom.xml
+++ b/log4j-spring-boot/pom.xml
@@ -120,4 +120,26 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/log4j-to-jul/pom.xml b/log4j-to-jul/pom.xml
index 0df4b41f25..f839bf2dd7 100644
--- a/log4j-to-jul/pom.xml
+++ b/log4j-to-jul/pom.xml
@@ -63,24 +63,4 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
diff --git a/log4j-to-slf4j/pom.xml b/log4j-to-slf4j/pom.xml
index 75566d2757..2ea30e826e 100644
--- a/log4j-to-slf4j/pom.xml
+++ b/log4j-to-slf4j/pom.xml
@@ -96,23 +96,4 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: copy/paste from `logging-parent` to override this 
module's parent -->
-          <annotationProcessorPaths combine.self="override">
-            <path>
-              <groupId>com.google.errorprone</groupId>
-              <artifactId>error_prone_core</artifactId>
-              <version>${error-prone.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
 </project>
diff --git a/log4j-web/pom.xml b/log4j-web/pom.xml
index 6b49d3d128..9a7f00c906 100644
--- a/log4j-web/pom.xml
+++ b/log4j-web/pom.xml
@@ -90,4 +90,27 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <!--
+            ~ Modules that contain `log4j-core` plugins, must be compiled with:
+            ~
+            ~   
org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor
+            -->
+          <annotationProcessorPaths combine.children="append">
+            <path>
+              <groupId>org.apache.logging.log4j</groupId>
+              <artifactId>log4j-core</artifactId>
+              <version>${project.version}</version>
+            </path>
+          </annotationProcessorPaths>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>
diff --git a/pom.xml b/pom.xml
index 849b5204c5..cc8b505dc0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -714,21 +714,6 @@
         </configuration>
       </plugin>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <!-- TODO: this only applies to `log4j-core` dependents -->
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-core</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>

Reply via email to