Class CompileTestsMojo

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

@Mojo(name="compileTests", defaultPhase=TEST_COMPILE, requiresDependencyResolution=TEST, threadSafe=true) public class CompileTestsMojo extends AbstractCompileMojo
Compiles the test 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

    • testSources

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

      @Parameter(defaultValue="${project.build.testOutputDirectory}") protected File testOutputDirectory
      The location for the compiled test classes.
    • skipTests

      @Parameter(property="maven.test.skip", defaultValue="false") protected boolean skipTests
      Flag to allow test compilation to be skipped.
  • Constructor Details

    • CompileTestsMojo

      public CompileTestsMojo()
  • 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)