Package org.apache.johnzon.maven.plugin
Class JsonSchemaToPojoMojo
- java.lang.Object
- 
- org.apache.maven.plugin.AbstractMojo
- 
- org.apache.johnzon.maven.plugin.JsonSchemaToPojoMojo
 
 
- 
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo
 
 @Mojo(name="jsonschema2pojo", defaultPhase=GENERATE_SOURCES) public class JsonSchemaToPojoMojo extends org.apache.maven.plugin.AbstractMojoGenerates mojo bindings from json schema specification(s).
- 
- 
Field SummaryFields Modifier and Type Field Description private PojoGenerator.PojoConfigurationgeneratorGeneration configuration.private List<String>jsonSchemaExtensionsExtensions to consider if source is a directory.private FilesourceSource jsonschema or directory containing json schemas.private FiletargetWhere to dump generated classes.
 - 
Constructor SummaryConstructors Constructor Description JsonSchemaToPojoMojo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddump(Map<String,String> generate)voidexecute()private jakarta.json.JsonObjectread(jakarta.json.JsonReaderFactory readerFactory, Path path)
 
- 
- 
- 
Field Detail- 
generator@Parameter private PojoGenerator.PojoConfiguration generator Generation configuration. Note that if source is a directory, class name is ignored and auto set from schema name.
 - 
jsonSchemaExtensions@Parameter(property="johnzon.jsonschema.extensions", defaultValue=".jsonschema.json") private List<String> jsonSchemaExtensionsExtensions to consider if source is a directory.
 - 
source@Parameter(property="johnzon.source", defaultValue="${project.basedir}/src/main/johnzon/jsonschema") private File sourceSource jsonschema or directory containing json schemas.
 - 
target@Parameter(property="johnzon.target", defaultValue="${project.build.directory}/generated-sources/johnzon-pojo") private File targetWhere to dump generated classes.
 
- 
 
-