@Mojo(name="avro-compile",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public final class SchemaCompileMojo
extends SchemaMojoBase
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_MANIFEST |
dependenciesDirectory, generatedAvscTarget, generatedJavaTarget, mavenProject, mavenSession, repoSystem, sourceDirectory, target| Constructor and Description |
|---|
SchemaCompileMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMvnIdToIdlsAndModeToDestination(Path pSources) |
void |
compileAvpr(Path pSources) |
void |
compileIdl(Path pSources) |
List<URL> |
createPathUrls(File sourceFolder) |
void |
deleteGeneratedAvailableInDependencies() |
void |
deleteProtocolClasses() |
void |
deleteSchemasAvailableInDependencies(Path schTargetPath) |
protected void |
doCompileIDL(File sourceDir,
String filename) |
protected void |
doCompileProtocol(String filename,
Path destination) |
protected void |
doCompileSchemas(String[] filenames) |
void |
execute() |
String |
genMnvId(org.apache.avro.Schema schema) |
static String[] |
getFiles(File directory,
String pattern) |
String[] |
getSourceFiles(String pattern) |
String |
toString()
will be overwritten as needed, and override will include this result.
|
getGeneratedAvscTarget, getMavenProject, getMavenSession, getRepoSystem, getTargetpublic static final String SCHEMA_MANIFEST
public String genMnvId(org.apache.avro.Schema schema)
protected void doCompileIDL(File sourceDir, String filename) throws IOException
IOExceptionpublic List<URL> createPathUrls(File sourceFolder) throws MalformedURLException, org.apache.maven.artifact.DependencyResolutionRequiredException
MalformedURLExceptionorg.apache.maven.artifact.DependencyResolutionRequiredExceptionprotected void doCompileSchemas(String[] filenames) throws IOException
IOExceptionprotected void doCompileProtocol(String filename, Path destination) throws IOException
IOExceptionpublic void deleteGeneratedAvailableInDependencies()
throws IOException
IOExceptionpublic void deleteProtocolClasses()
throws IOException
IOExceptionpublic void deleteSchemasAvailableInDependencies(Path schTargetPath) throws IOException
IOExceptionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void compileIdl(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void addMvnIdToIdlsAndModeToDestination(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void compileAvpr(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic String toString()
SchemaMojoBasetoString in class SchemaMojoBaseCopyright © 2018 SPF4J. All rights reserved.