public abstract class AbstractGenerateStubsMojo extends CompilerMojoSupport
Stub generation basically parses Groovy sources, and then creates the bare-minimum Java source equivilent so that the maven-compiler-plugin's compile and testCompile goals can execute and resolve Groovy classes that may be referenced by Java sources.
This is important, since our compile and testCompile goals execute *after* the normal Java compiler does.
classpath, compileState, sourcespluginArtifactMapartifactFactory, artifactMetadataSource, artifactRepository, artifactResolver, log, project, remoteRepositories| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGenerateStubsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compile(StubCompiler compiler,
org.apache.maven.shared.model.fileset.FileSet[] sources) |
void |
execute()
Main Mojo execution hook.
|
protected abstract void |
forceCompile(File file) |
protected void |
process(Component component) |
addSourceRoot, getDefaultSources, getExcludesFrom, getIncludesFrom, getOutputDirectory, getSourceRoots, getUserClassspathElements, scanForSources, scanForSourcesconfigure, doExecute, feature, featuredetectCompatibleProvider, getProviderManager, getProviderSelection, providercreateArtifact, createClassPath, getArtifact, getProjectClasspathElements, resolveArtifactpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
MojoSupportMojoSupport.doExecute() instead.execute in interface org.apache.maven.plugin.Mojoexecute in class MojoSupportorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void forceCompile(File file)
protected void process(Component component) throws Exception
process in class ComponentMojoSupportExceptionprotected void compile(StubCompiler compiler, org.apache.maven.shared.model.fileset.FileSet[] sources) throws Exception
ExceptionCopyright © 2006-2012 Codehaus. All Rights Reserved.