streams-plugin-pojo generates source files from json schemas suitable for writing Apache Streams components and libraries in Java.
Output will be placed in target/generated-sources/pojo by default
Run within a module containing a src/main/jsonschema directory
mvn org.apache.streams.plugins:streams-plugin-pojo:0.5.1:generate-sources
Embed within your own java code
StreamsPojoGenerationConfig config = new StreamsPojoGenerationConfig(); config.setSourceDirectory("src/main/jsonschema"); config.setTargetDirectory("target/generated-resources"); StreamsPojoSourceGenerator generator = new StreamsPojoSourceGenerator(config); generator.run();