@Mojo(name="jsonschema2pojo",
defaultPhase=GENERATE_SOURCES)
public class JsonSchemaToPojoMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
private org.apache.johnzon.jsonschema.generator.PojoGenerator.PojoConfiguration |
generator
Generation configuration.
|
private java.util.List<java.lang.String> |
jsonSchemaExtensions
Extensions to consider if source is a directory.
|
private java.io.File |
source
Source jsonschema or directory containing json schemas.
|
private java.io.File |
target
Where to dump generated classes.
|
Constructor and Description |
---|
JsonSchemaToPojoMojo() |
Modifier and Type | Method and Description |
---|---|
private void |
dump(java.util.Map<java.lang.String,java.lang.String> generate) |
void |
execute() |
private javax.json.JsonObject |
read(javax.json.JsonReaderFactory readerFactory,
java.nio.file.Path path) |
@Parameter private org.apache.johnzon.jsonschema.generator.PojoGenerator.PojoConfiguration generator
@Parameter(property="johnzon.jsonschema.extensions", defaultValue=".jsonschema.json") private java.util.List<java.lang.String> jsonSchemaExtensions
@Parameter(property="johnzon.source", defaultValue="${project.basedir}/src/main/johnzon/jsonschema") private java.io.File source
@Parameter(property="johnzon.target", defaultValue="${project.build.directory}/generated-sources/johnzon-pojo") private java.io.File target
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.