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, sources
pluginArtifactMap
artifactFactory, 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, scanForSources
configure, doExecute, feature, feature
detectCompatibleProvider, getProviderManager, getProviderSelection, provider
createArtifact, createClassPath, getArtifact, getProjectClasspathElements, resolveArtifact
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
MojoSupport
MojoSupport.doExecute()
instead.execute
in interface org.apache.maven.plugin.Mojo
execute
in class MojoSupport
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void forceCompile(File file)
protected void process(Component component) throws Exception
process
in class ComponentMojoSupport
Exception
protected void compile(StubCompiler compiler, org.apache.maven.shared.model.fileset.FileSet[] sources) throws Exception
Exception
Copyright © 2006-2012 Codehaus. All Rights Reserved.