Class DeriveSchemaMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.confluent.kafka.schemaregistry.maven.DeriveSchemaMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="derive-schema",
configurator="custom-basic")
public class DeriveSchemaMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()static List<com.fasterxml.jackson.databind.JsonNode>readLinesOfMessages(File messagePath) static voidwriteOutput(File outputPath, com.fasterxml.jackson.databind.JsonNode schemaInformation) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
mapper
protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Details
-
DeriveSchemaMojo
public DeriveSchemaMojo()
-
-
Method Details
-
writeOutput
public static void writeOutput(File outputPath, com.fasterxml.jackson.databind.JsonNode schemaInformation) throws IOException - Throws:
IOException
-
readLinesOfMessages
public static List<com.fasterxml.jackson.databind.JsonNode> readLinesOfMessages(File messagePath) throws IOException - Throws:
IOException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-