public abstract class AbstractCompileMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCompileMojo.AccessRulesViolation |
static class |
AbstractCompileMojo.Debug |
static class |
AbstractCompileMojo.Proc |
Modifier and Type | Field and Description |
---|---|
protected String[] |
annotationProcessors
Names of annotation processors to run.
|
protected String |
compilerId
The compiler id of the compiler to use, one of
javac , forked-javac or jdt . |
protected AbstractCompileMojo.Proc |
proc
Sets whether annotation processing is performed or not.
|
Constructor and Description |
---|
AbstractCompileMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected abstract List<File> |
getClasspath() |
protected Set<File> |
getDirectDependencies() |
protected abstract Set<String> |
getExcludes() |
protected abstract File |
getGeneratedSourcesDirectory() |
protected abstract Set<String> |
getIncludes() |
protected abstract File |
getMainOutputDirectory() |
protected abstract File |
getOutputDirectory() |
Charset |
getSourceEncoding() |
protected abstract Set<String> |
getSourceRoots() |
protected abstract boolean |
isSkip() |
@Parameter(property="maven.compiler.compilerId", defaultValue="javac") protected String compilerId
javac
, forked-javac
or jdt
.@Parameter protected AbstractCompileMojo.Proc proc
Sets whether annotation processing is performed or not. This parameter is required if annotation processors are present on compile classpath.
Allowed values are:
proc
- both compilation and annotation processing are performed at the same time.none
- no annotation processing is performed.only
- only annotation processing is done, no compilation.@Parameter protected String[] annotationProcessors
Names of annotation processors to run. If not set, the default annotation processors discovery process applies.
public Charset getSourceEncoding()
protected abstract File getOutputDirectory()
protected abstract File getGeneratedSourcesDirectory()
protected abstract boolean isSkip()
protected abstract File getMainOutputDirectory()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2015. All rights reserved.