From 6b4e4e652a516762edf8844c89828a41035c9070 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 12 Jan 2016 15:55:39 +0100 Subject: [PATCH] Clarify annotation processor config with AspectJ Closes gh-4847 --- .../appendix-configuration-metadata.adoc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc b/spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc index 6c458ec4c93..f108e2261a3 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc @@ -712,6 +712,26 @@ handling for collection types (that will be detected even if only a getter is pr annotation processor also supports the use of the `@Data`, `@Getter` and `@Setter` lombok annotations. +[NOTE] +==== +If you are using AspectJ in your project, you need to make sure that the annotation +processor only runs once. There are several ways to do this: with Maven, you can +configure the `maven-apt-plugin` explicitly and add the dependency to the annotation +processor only there. You could also let the AspectJ plugin runs all the processing +and disable annotation processing in the `maven-compiler-plugin` configuration: + +[source,xml,indent=0,subs="verbatim,quotes,attributes"] +---- + + org.apache.maven.plugins + maven-compiler-plugin + + none + + +---- +==== + [[configuration-metadata-nested-properties]]