Commit 6b4e4e65 authored by Stephane Nicoll's avatar Stephane Nicoll

Clarify annotation processor config with AspectJ

Closes gh-4847
parent 2aff82bb
...@@ -712,6 +712,26 @@ handling for collection types (that will be detected even if only a getter is pr ...@@ -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 annotation processor also supports the use of the `@Data`, `@Getter` and `@Setter` lombok
annotations. 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"]
----
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<proc>none</proc>
</configuration>
</plugin>
----
====
[[configuration-metadata-nested-properties]] [[configuration-metadata-nested-properties]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment