public abstract class SchemaMojoBase
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
dependenciesDirectory
The directory where all schema dependencies (avsc, avpr, avdl) are made vailable
|
protected File |
generatedAvscTarget
the destination for the generated avro schema json files (will be published along with the java code).
|
protected File |
generatedJavaTarget
the destination for the java generated files.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.execution.MavenSession |
mavenSession
The current build mavenSession instance.
|
protected org.eclipse.aether.RepositorySystem |
repoSystem
The entry point to Aether, i.e.
|
protected File |
sourceDirectory
The source directory of avro files.
|
protected File |
target
the target folder.
|
Constructor and Description |
---|
SchemaMojoBase() |
Modifier and Type | Method and Description |
---|---|
File |
getGeneratedAvscTarget() |
org.apache.maven.project.MavenProject |
getMavenProject() |
org.apache.maven.execution.MavenSession |
getMavenSession() |
org.eclipse.aether.RepositorySystem |
getRepoSystem() |
File |
getTarget() |
String |
toString()
will be overwritten as needed, and override will include this result.
|
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject mavenProject
@Parameter(name="dependenciesDirectory", defaultValue="${project.build.directory}/schema-dependencies", readonly=true) protected File dependenciesDirectory
@Parameter(name="sourceDirectory", defaultValue="${basedir}/src/main/avro") protected File sourceDirectory
@Parameter(name="generatedJavaTarget", defaultValue="${project.build.directory}/generated-sources/avro") protected File generatedJavaTarget
@Parameter(name="generatedAvscTarget", defaultValue="${project.build.directory}/generated-sources/avsc") protected File generatedAvscTarget
@Parameter(name="target", defaultValue="${project.build.directory}") protected File target
@Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession mavenSession
@Component protected org.eclipse.aether.RepositorySystem repoSystem
public final org.eclipse.aether.RepositorySystem getRepoSystem()
public final org.apache.maven.execution.MavenSession getMavenSession()
public final org.apache.maven.project.MavenProject getMavenProject()
public final File getGeneratedAvscTarget()
public final File getTarget()
Copyright © 2018 SPF4J. All rights reserved.