Maven Plugin - module tag is not working #252
-
Getting this error with Maven Plugin: <plugin>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-maven-plugin</artifactId>
<version>4.24.3</version>
<executions>
<execution>
<id>jsonschema</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<options>
<enabled>
<option>DEFINITION_FOR_MAIN_SCHEMA</option>
</enabled>
</options>
<classNames>
<className>
com.x.x.x.Offer
</className>
<className>
com.x.x.x..Order
</className>
</classNames>
<modules><module>Jackson</module></modules>
<schemaVersion>DRAFT_6</schemaVersion>
<schemaFilePath>src/main/resources/jsonschema</schemaFilePath>
<schemaFileName>{0}.json</schemaFileName>
</configuration>
</plugin> Stack trace looks like this
|
Beta Was this translation helpful? Give feedback.
Answered by
CarstenWickner
May 7, 2022
Replies: 1 comment 1 reply
-
Hi @aniljose72, The issue is in the wrong<modules>
<module>Jackson</module>
</modules> correct<modules>
<module>
<name>Jackson</name>
</module>
</modules> The extra
It's described here, with a respective example: <modules>
<module>
<name>Jackson</name>
<options>
<option>FLATTENED_ENUMS_FROM_JSONVALUE</option>
</options>
</module>
</modules> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CarstenWickner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @aniljose72,
The issue is in the
<modules>
block:wrong
correct
The extra
<name>
tag is required for two reasons:<className>
.It's described here, with a respective example:
https://victools.github.io/jsonschema-generator/#further-configurations-through-modules