From 6e28a9f6e1384a7bc4c8b57d501f553877368be4 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-error-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 4a2875c758..69ad44bcc6 100644 --- a/spring-data-jpa/pom.xml +++ b/spring-data-jpa/pom.xml @@ -357,6 +357,12 @@ + org.codehaus.mojo aspectj-maven-plugin @@ -374,14 +380,14 @@ compile - process-classes + aspectj-test-compile test-compile - process-test-classes +