From ebf31dda35d08407cd6bfb822fc60e8002b97a18 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Thu, 28 Dec 2023 09:25:33 +0700 Subject: [PATCH] Move AspectJ Maven executions to default phases Document the pros and cons in the POM with this comment: Attention: aspectj-maven-plugin MUST be declared AFTER maven-compiler-plugin, if they are both supposed to run in the same default phases 'compile' and 'test-compile', but execution order is to be guaranteed. Then, you have the convenience of being able to run e.g. 'mvn [clean] compile' instead of 'mvn [clean] process-classes'. For a slightly less convenient, but less refactoring-errror-prone solution, see the commented-out phases below. --- spring-data-jpa/pom.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spring-data-jpa/pom.xml b/spring-data-jpa/pom.xml index 02133bbb33..189a62bd9a 100644 --- a/spring-data-jpa/pom.xml +++ b/spring-data-jpa/pom.xml @@ -415,6 +415,12 @@ + org.codehaus.mojo aspectj-maven-plugin @@ -432,14 +438,14 @@ compile - process-classes + aspectj-test-compile test-compile - process-test-classes +