Class ModelloJsonSchemaGeneratorMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="jsonschema",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true)
    public final class ModelloJsonSchemaGeneratorMojo
    extends AbstractModelloGeneratorMojo
    Creates a JSON Schema from the model.
    Since:
    1.8
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-site/jsonschema",
                   required=true)
        private java.io.File outputDirectory
        The output directory of the generated JSON Schema. Hint: if you want to publish the schema automatically with the site, configure this parameter to ${basedir}/target/generated-site/resources/jsonschema.
      • jsonSchemaFileName

        @Parameter
        private java.lang.String jsonSchemaFileName
    • Constructor Detail

      • ModelloJsonSchemaGeneratorMojo

        public ModelloJsonSchemaGeneratorMojo()