Skip to content

Commit f3f3acc

Browse files
annotation processors order note
1 parent badd7ae commit f3f3acc

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

docs/asciidoc/modules/avaje-inject.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<version>...</version>
1919
<configuration>
2020
<annotationProcessorPaths>
21+
<!-- if using lombok, it must be placed before the avaje-inject-generator -->
22+
<!-- avaje-inject-generator must be placed before the jooby-apt -->
2123
<path>
2224
<groupId>io.avaje</groupId>
2325
<artifactId>avaje-inject-generator</artifactId>

docs/asciidoc/modules/avaje-validator.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Bean validation via https://avaje.io/validator/[Avaje Validator].
2222
<version>...</version>
2323
<configuration>
2424
<annotationProcessorPaths>
25+
<!-- if using lombok, it must be placed before the generator -->
2526
<path>
2627
<groupId>io.avaje</groupId>
2728
<artifactId>avaje-validator-generator</artifactId>

docs/asciidoc/mvc-api.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ on them (mostly annotations processors).
939939
<artifactId>maven-compiler-plugin</artifactId>
940940
<configuration>
941941
<annotationProcessorPaths>
942+
<!-- if using lombok, it must be placed before the jooby-apt -->
943+
<!-- if using avaje-inject, it must be placed after lombok, but before the jooby-apt -->
942944
<path>
943945
<groupId>io.jooby</groupId>
944946
<artifactId>jooby-apt</artifactId>

modules/jooby-cli/src/main/resources/cli/pom.xml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@
121121
{{#if apt}}
122122
<configuration>
123123
<annotationProcessorPaths>
124+
<!-- if using lombok, it must be placed before the jooby-apt -->
125+
<!-- if using avaje-inject, it must be placed after lombok, but before the jooby-apt -->
124126
<path>
125127
<groupId>io.jooby</groupId>
126128
<artifactId>jooby-apt</artifactId>

0 commit comments

Comments
 (0)