Class ModelloJsonSchemaGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.modello.maven.AbstractModelloGeneratorMojo
org.codehaus.modello.maven.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 Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate FileThe output directory of the generated JSON Schema.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeParameters(Map<String, Object> parameters) Override this method to customize the values in the properties set.protected StringMethods inherited from class AbstractModelloGeneratorMojo
createParameters, execute, getBasedir, getModelloCore, getModels, getPackageWithVersion, getProject, getVersion, producesCompilableResult, producesResources, setBasedir, setBuildContext, setModelloCore, setModels, setPackagedVersions, setPackageWithVersion, setProject, setVersionMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-site/jsonschema", required=true) private File outputDirectoryThe 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
-
-
Constructor Details
-
ModelloJsonSchemaGeneratorMojo
public ModelloJsonSchemaGeneratorMojo()
-
-
Method Details
-
customizeParameters
Description copied from class:AbstractModelloGeneratorMojoOverride this method to customize the values in the properties set.This method will be called after the parameters have been populated with the parameters in the abstract mojo.
- Overrides:
customizeParametersin classAbstractModelloGeneratorMojo- Parameters:
parameters- the parameters to customize
-
getGeneratorType
- Specified by:
getGeneratorTypein classAbstractModelloGeneratorMojo
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractModelloGeneratorMojo
-