Class CompileMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="compile", defaultPhase=COMPILE, requiresDependencyResolution=COMPILE, threadSafe=true) public class CompileMojo extends AbstractCompileMojo
Compiles the main sources. Note that this mojo requires Groovy >= 1.5.0, and >= 2.0.0-beta-3 (the indy version) for compiling with invokedynamic option.
Since:
1.0-beta-1
Author:
Keegan Witt
  • Field Details

    • sources

      @Parameter protected org.apache.maven.shared.model.fileset.FileSet[] sources
      The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy"
    • outputDirectory

      @Parameter(defaultValue="${project.build.outputDirectory}") protected File outputDirectory
      The location for the compiled classes.
  • Constructor Details

    • CompileMojo

      public CompileMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes this mojo.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If an unexpected problem occurs (causes a "BUILD ERROR" message to be displayed)