@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, getTarget
public static final String SCHEMA_MANIFEST
public String genMnvId(org.apache.avro.Schema schema)
protected void doCompileIDL(File sourceDir, String filename) throws IOException
IOException
public List<URL> createPathUrls(File sourceFolder) throws MalformedURLException, org.apache.maven.artifact.DependencyResolutionRequiredException
MalformedURLException
org.apache.maven.artifact.DependencyResolutionRequiredException
protected void doCompileSchemas(String[] filenames) throws IOException
IOException
protected void doCompileProtocol(String filename, Path destination) throws IOException
IOException
public void deleteGeneratedAvailableInDependencies() throws IOException
IOException
public void deleteProtocolClasses() throws IOException
IOException
public void deleteSchemasAvailableInDependencies(Path schTargetPath) throws IOException
IOException
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void compileIdl(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void addMvnIdToIdlsAndModeToDestination(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void compileAvpr(Path pSources) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public String toString()
SchemaMojoBase
toString
in class SchemaMojoBase
Copyright © 2018 SPF4J. All rights reserved.