Class CompileMojo

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

    @Mojo(name="compile",
          defaultPhase=PREPARE_PACKAGE,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class CompileMojo
    extends org.apache.maven.plugin.AbstractMojo
    implements GwtOptions
    Invokes the GWT Compiler on the project's sources and resources.
    • Field Detail

      • session

        @Parameter(defaultValue="${session}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.execution.MavenSession session
      • toolchainManager

        @Component
        protected org.apache.maven.toolchain.ToolchainManager toolchainManager
    • Constructor Detail

      • CompileMojo

        public CompileMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getLogLevel

        @Nullable
        public java.lang.String getLogLevel()
        Specified by:
        getLogLevel in interface GwtOptions
      • getStyle

        @Nullable
        public java.lang.String getStyle()
        Specified by:
        getStyle in interface GwtOptions
      • getOptimize

        @Nullable
        public java.lang.Integer getOptimize()
        Specified by:
        getOptimize in interface GwtOptions
      • getWarDir

        public java.io.File getWarDir()
        Specified by:
        getWarDir in interface GwtOptions
      • getExtraDir

        @Nullable
        public java.io.File getExtraDir()
        Specified by:
        getExtraDir in interface GwtOptions
      • getLocalWorkers

        @Nullable
        public java.lang.String getLocalWorkers()
        Specified by:
        getLocalWorkers in interface GwtOptions
      • getSourceLevel

        @Nullable
        public java.lang.String getSourceLevel()
        Specified by:
        getSourceLevel in interface GwtOptions