public abstract class AbstractAnnotationProcessorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.plexus.compiler.manager.CompilerManager |
compilerManager
Plexus compiler manager.
|
protected boolean |
fork
Allows running the compiler in a separate process.
|
protected org.apache.maven.project.MavenProject |
project |
protected org.apache.maven.execution.MavenSession |
session
Maven Session
|
protected boolean |
skip
Set this to true to skip annotation processing.
|
| Constructor and Description |
|---|
AbstractAnnotationProcessorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addCompileSourceRoot(org.apache.maven.project.MavenProject project,
String dir) |
void |
execute() |
protected abstract List<String> |
getAllCompileSourceRoots() |
protected abstract Set<String> |
getClasspathElements(Set<String> result) |
abstract File |
getDefaultOutputDirectory() |
protected abstract File |
getOutputClassDirectory() |
protected abstract Set<String> |
getResourcesElements(Set<String> result) |
protected abstract Set<File> |
getSourceDirectories(Set<File> result) |
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="false",
property="skipAnnotationProcessing")
protected boolean skip
@Parameter(defaultValue="false",
property="fork")
protected boolean fork
maven.processor.source maven.processor.target
@Parameter(defaultValue="${session}",
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Component protected org.codehaus.plexus.compiler.manager.CompilerManager compilerManager
protected abstract Set<File> getSourceDirectories(Set<File> result)
protected abstract File getOutputClassDirectory()
protected abstract void addCompileSourceRoot(org.apache.maven.project.MavenProject project,
String dir)
project - dir - public abstract File getDefaultOutputDirectory()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2009–2020. All rights reserved.