Package org.codehaus.modello.maven
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
Fields Modifier and Type Field Description private java.lang.String
jsonSchemaFileName
private java.io.File
outputDirectory
The output directory of the generated JSON Schema.
-
Constructor Summary
Constructors Constructor Description ModelloJsonSchemaGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
customizeParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Override this method to customize the values in the properties set.protected java.lang.String
getGeneratorType()
java.io.File
getOutputDirectory()
-
Methods inherited from class org.codehaus.modello.maven.AbstractModelloGeneratorMojo
createParameters, execute, getBasedir, getModelloCore, getModels, getPackageWithVersion, getProject, getVersion, producesCompilableResult, producesResources, setBasedir, setBuildContext, setModelloCore, setModels, setPackagedVersions, setPackageWithVersion, setProject, setVersion
-
-
-
-
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
-
-
Method Detail
-
customizeParameters
protected void customizeParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from class:AbstractModelloGeneratorMojo
Override 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:
customizeParameters
in classAbstractModelloGeneratorMojo
- Parameters:
parameters
- the parameters to customize
-
getGeneratorType
protected java.lang.String getGeneratorType()
- Specified by:
getGeneratorType
in classAbstractModelloGeneratorMojo
-
getOutputDirectory
public java.io.File getOutputDirectory()
- Specified by:
getOutputDirectory
in classAbstractModelloGeneratorMojo
-
-