Skip to content

Maven Plugin - module tag is not working #252

Closed Answered by CarstenWickner
aniljose72 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aniljose72,

The issue is in the <modules> block:

wrong

<modules>
    <module>Jackson</module>
</modules>

correct

<modules>
    <module>
        <name>Jackson</name>
    </module>
</modules>

The extra <name> tag is required for two reasons:

  1. To distinguish from non-standard modules, which you'd reference via <className>.
  2. To allow specifying module-specific options as well.

It's described here, with a respective example:
https://victools.github.io/jsonschema-generator/#further-configurations-through-modules

<modules>
    <module>
        <name>Jackson</name>
        <options>
            <option>FLATTENED_ENUMS_FROM_JSONVALUE</option>
        </options>
    </module>
</modules>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aniljose72
Comment options

Answer selected by CarstenWickner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #251 on May 07, 2022 21:41.