Package cool.klass.compiler.plugin
Class KlassCompilerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
cool.klass.generator.plugin.AbstractGenerateMojo
cool.klass.compiler.plugin.KlassCompilerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="compile",
defaultPhase=TEST,
threadSafe=true,
requiresDependencyResolution=TEST)
public class KlassCompilerMojo
extends AbstractGenerateMojo
This plugin doesn't emit anything. It just compiles the source code and emits compiler errors if applicable. The goal is to emit compiler errors in the module which contains the code being compiled, rather than a dependent module. This helps with rerunnability.
-
Field Summary
Fields inherited from class cool.klass.generator.plugin.AbstractGenerateMojo
colorScheme, KLASS_FILE_EXTENSION, klassSourcePackages, logCompilerAnnotations, logGitHubAnnotations, mavenProjectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class cool.klass.generator.plugin.AbstractGenerateMojo
getDomainModel, getDomainModelFromFiles, handleErrorsCompilationResultMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
KlassCompilerMojo
public KlassCompilerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-