Skip to content

Commit 3ef3c7a

Browse files
committed
Add annotationProcessorPaths to pom.xml code snippet
1 parent c168f33 commit 3ef3c7a

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,35 @@ annotation. Use `packagePattern` to change this (see Javadoc for details).
327327

328328
### Maven
329329

330-
Add a dependency that contains the discoverable annotation processor:
330+
Add the `record-builder-core` dependency and specify the annotation processor in the Maven Compiler Plugin:
331331

332332
```xml
333-
<dependency>
334-
<groupId>io.soabase.record-builder</groupId>
335-
<artifactId>record-builder-processor</artifactId>
336-
<version>${record.builder.version}</version>
337-
<scope>provided</scope>
338-
</dependency>
333+
<dependencies>
334+
<dependency>
335+
<groupId>io.soabase.record-builder</groupId>
336+
<artifactId>record-builder-core</artifactId>
337+
<version>${record.builder.version}</version>
338+
<scope>provided</scope>
339+
</dependency>
340+
</dependencies>
341+
342+
<build>
343+
<plugins>
344+
<plugin>
345+
<groupId>org.apache.maven.plugins</groupId>
346+
<artifactId>maven-compiler-plugin</artifactId>
347+
<configuration>
348+
<annotationProcessorPaths>
349+
<path>
350+
<groupId>io.soabase.record-builder</groupId>
351+
<artifactId>record-builder-processor</artifactId>
352+
<version>${record.builder.version}</version>
353+
</path>
354+
</annotationProcessorPaths>
355+
</configuration>
356+
</plugin>
357+
</plugins>
358+
</build>
339359
```
340360

341361
### Gradle

0 commit comments

Comments
 (0)