Move annotation processing configuration to the parent POM.

This allows the compiler args configuration to be used for all child
POMS. This commit does not include compiler args for annotation
processing but I have experiments that do for experimenting with
generating different kinds of plugin cache files for all modules.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/dee36ee5
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/dee36ee5
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/dee36ee5

Branch: refs/heads/LOG4J2-1661
Commit: dee36ee53fae3270e015785956ddbbcbe9ea083c
Parents: db38f18
Author: Gary Gregory <[email protected]>
Authored: Fri Nov 4 16:24:00 2016 -0700
Committer: Gary Gregory <[email protected]>
Committed: Fri Nov 4 16:24:00 2016 -0700

----------------------------------------------------------------------
 log4j-core/pom.xml | 24 ------------------------
 pom.xml            | 24 ++++++++++++++++++++++++
 2 files changed, 24 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/dee36ee5/log4j-core/pom.xml
----------------------------------------------------------------------
diff --git a/log4j-core/pom.xml b/log4j-core/pom.xml
index 5cda105..5228a8d 100644
--- a/log4j-core/pom.xml
+++ b/log4j-core/pom.xml
@@ -333,30 +333,6 @@
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>${compiler.plugin.version}</version>
-        <executions>
-          <execution>
-            <!-- disable annotation processing for first pass -->
-            <id>default-compile</id>
-            <goals>
-              <goal>compile</goal>
-            </goals>
-            <phase>compile</phase>
-            <configuration>
-              <proc>none</proc>
-            </configuration>
-          </execution>
-          <execution>
-            <!-- then do a processing-only pass to generate plugins .dat file 
-->
-            <id>process-plugins</id>
-            <goals>
-              <goal>compile</goal>
-            </goals>
-            <phase>process-classes</phase>
-            <configuration>
-              <proc>only</proc>
-            </configuration>
-          </execution>
-        </executions>
       </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/dee36ee5/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 242c4fc..fd71440 100644
--- a/pom.xml
+++ b/pom.xml
@@ -868,6 +868,30 @@
               <Xlint />
             </compilerArguments>
           </configuration>
+          <executions>
+            <execution>
+              <!-- disable annotation processing for first pass -->
+              <id>default-compile</id>
+              <goals>
+                <goal>compile</goal>
+              </goals>
+              <phase>compile</phase>
+              <configuration>
+                <proc>none</proc>
+              </configuration>
+            </execution>
+            <execution>
+              <!-- then do a processing-only pass to generate plugins .dat 
file -->
+              <id>process-plugins</id>
+              <goals>
+                <goal>compile</goal>
+              </goals>
+              <phase>process-classes</phase>
+              <configuration>
+                <proc>only</proc>
+              </configuration>
+            </execution>
+          </executions>          
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>

Reply via email to