diff --git a/spring-data-jpa/pom.xml b/spring-data-jpa/pom.xml index 4a2875c758..b07b6d7898 100644 --- a/spring-data-jpa/pom.xml +++ b/spring-data-jpa/pom.xml @@ -357,6 +357,11 @@ </configuration> </plugin> + <!-- + 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'. + --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> @@ -374,14 +379,12 @@ <goals> <goal>compile</goal> </goals> - <phase>process-classes</phase> </execution> <execution> <id>aspectj-test-compile</id> <goals> <goal>test-compile</goal> </goals> - <phase>process-test-classes</phase> </execution> </executions> <configuration>