public abstract class AbstractCompilerMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SOURCE_VERSION |
static String |
DEFAULT_TARGET_VERSION |
protected String |
source
The -source argument for the Java compiler
|
protected String |
target
The -target argument for the Java compiler
|
Constructor and Description |
---|
AbstractCompilerMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected abstract List |
getClasspathElements() |
protected org.codehaus.plexus.compiler.CompilerConfiguration |
getCompilerConfiguration(List<String> compileSourceRoots) |
protected abstract List |
getCompileSourceRoots() |
protected abstract File |
getOutputDirectory() |
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(int staleMillis) |
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner |
getSourceInclusionScanner(String inputFileEnding) |
protected static List |
removeEmptyCompileSourceRoots(List compileSourceRootsList) |
public static final String DEFAULT_SOURCE_VERSION
public static final String DEFAULT_TARGET_VERSION
@Parameter(property="maven.compiler.source") protected String source
@Parameter(property="maven.compiler.target") protected String target
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
protected abstract List getClasspathElements() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract List getCompileSourceRoots() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract File getOutputDirectory()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2008-2016 Eclipse Foundation. All Rights Reserved.