Class AbstractCompileMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    CompileMojo, CompileTestsMojo

    public abstract class AbstractCompileMojo
    extends AbstractGroovySourcesMojo
    The base compile mojo, which all compile mojos extend.
    Since:
    1.0-beta-1
    Author:
    Keegan Witt
    • Field Detail

      • GROOVY_2_1_0_BETA3

        protected static final Version GROOVY_2_1_0_BETA3
        Groovy 2.1.0 beta-3 version.
      • GROOVY_2_1_0_BETA1

        protected static final Version GROOVY_2_1_0_BETA1
        Groovy 2.1.0 beta-1 version.
      • GROOVY_1_6_0

        protected static final Version GROOVY_1_6_0
        Groovy 1.6.0 version.
      • outputDirectory

        protected File outputDirectory
        The location for the compiled classes.
      • testOutputDirectory

        protected File testOutputDirectory
        The location for the compiled test classes.
      • sourceEncoding

        protected String sourceEncoding
        The encoding of source files.
      • targetBytecode

        protected String targetBytecode
        The Groovy compiler bytecode compatibility. One of
        • 1.4
        • 1.5
        • 1.6
        • 1.7
        • 1.8
        Using 1.6 or 1.7 requires Groovy >= 2.1.3, and using 1.8 requires Groovy >= 2.3.3. If an invalid selection is made, Groovy will default to VM determined version (1.4 or 1.5).
      • debug

        protected boolean debug
        Whether Groovy compiler should be set to debug.
      • verbose

        protected boolean verbose
        Whether Groovy compiler should be set to verbose.
      • warningLevel

        protected int warningLevel
        Groovy compiler warning level. Should be one of:
        0
        None
        1
        Likely Errors
        2
        Possible Errors
        3
        Paranoia
      • tolerance

        protected int tolerance
        Groovy compiler error tolerance (the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted).
      • invokeDynamic

        protected boolean invokeDynamic
        Whether to support invokeDynamic (requires Java 7 or greater and Groovy indy 2.0.0-beta-3 or greater).
      • configScript

        protected File configScript
        A script for tweaking the configuration options (requires Groovy 2.1.0-beta-1 or greater). Note that its encoding must match your source encoding.
    • Constructor Detail

      • AbstractCompileMojo

        public AbstractCompileMojo()