modello:jsonschema
Full name:
org.codehaus.modello:modello-maven-plugin:2.3.0:jsonschema
Description:
Creates a JSON Schema from the model.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Since version:
1.8
. - Binds by default to the lifecycle phase:
generate-sources
.
Required Parameters
Name | Type | Since | Description |
---|---|---|---|
<basedir> |
String |
- |
Base directory of the project, from where the Modello models are loaded. Default: ${basedir} |
<models> |
String[] |
- |
List of relative paths to mdo files containing the models. |
<outputDirectory> |
File |
- |
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 .Default: ${project.build.directory}/generated-site/jsonschema |
<packageWithVersion> |
boolean |
- |
True if the generated package names should include the version. Default: false User Property: packageWithVersion |
<version> |
String |
- |
The version of the model we will be working on. User Property: version |
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<jsonSchemaFileName> |
String |
- |
No description. |
<packagedVersions> |
List<String> |
- |
Additional historical versions to generate, each being packaged with the version regardless of the packageWithVersion setting. |
Parameter Details
<basedir>
Base directory of the project, from where the Modello models are loaded.
- Type:
java.lang.String
- Required:
report.plugin.goal.yes
- Default:
${basedir}
<jsonSchemaFileName>
No description.
- Type:
java.lang.String
- Required:
report.plugin.goal.no
<models>
List of relative paths to mdo files containing the models.
- Type:
java.lang.String[]
- Required:
report.plugin.goal.yes
<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
.- Type:
java.io.File
- Required:
report.plugin.goal.yes
- Default:
${project.build.directory}/generated-site/jsonschema
<packagedVersions>
Additional historical versions to generate, each being packaged with the version regardless of the
packageWithVersion
setting.- Type:
java.util.List<java.lang.String>
- Required:
report.plugin.goal.no
<packageWithVersion>
True if the generated package names should include the version.
- Type:
boolean
- Required:
report.plugin.goal.yes
- User Property:
packageWithVersion
- Default:
false
<version>
The version of the model we will be working on.
- Type:
java.lang.String
- Required:
report.plugin.goal.yes
- User Property:
version