Skip to content

Commit 2bd1207

Browse files
committed
Comment addressed
Signed-off-by: David Kral <[email protected]>
1 parent 8643dcf commit 2bd1207

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

docs/src/main/asciidoc/se/json/schema.adoc

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,32 +105,25 @@ include::{sourcedir}/se/json/JsonSchemaSnippets.java[tag=snippet_2, indent=0]
105105
----
106106
<1> Schema defining annotation. Without this annotation the class/record will not be processed as a JSON schema
107107
108-
We will need to extend the list of annotation processors with JSON schema codegen,
109-
otherwise the annotations would not be processed:
108+
In addition, the following section must be added to the `build` of the Maven `pom.xml` to enable annotation processors that generate the necessary code:
109+
110110
[source,xml]
111111
----
112-
<plugin>
113-
<groupId>org.apache.maven.plugins</groupId>
114-
<artifactId>maven-compiler-plugin</artifactId>
115-
<configuration>
116-
<annotationProcessorPaths>
117-
<!-- Other annotation processors -->
118-
119-
<!-- Service Registry codegen needed for automatic discovery of the generated schema -->
120-
<path>
121-
<groupId>io.helidon.service</groupId>
122-
<artifactId>helidon-service-codegen</artifactId>
123-
<version>${helidon.version}</version>
124-
</path>
125-
<!-- JSON Schema codegen -->
126-
<path>
127-
<groupId>io.helidon.json.schema</groupId>
128-
<artifactId>helidon-json-schema-codegen</artifactId>
129-
<version>${helidon.version}</version>
130-
</path>
131-
</annotationProcessorPaths>
132-
</configuration>
133-
</plugin>
112+
<plugins>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-compiler-plugin</artifactId>
116+
<configuration>
117+
<annotationProcessorPaths>
118+
<path>
119+
<groupId>io.helidon.bundles</groupId>
120+
<artifactId>helidon-bundles-apt</artifactId>
121+
<version>${helidon.version}</version>
122+
</path>
123+
</annotationProcessorPaths>
124+
</configuration>
125+
</plugin>
126+
</plugins>
134127
----
135128
136129
Once compiled, the class with the following name will be generated `ExampleSchema__JsonSchema`.

0 commit comments

Comments
 (0)