Class AbstractDevModeMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.ltgt.gwt.maven.AbstractDevModeMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CodeServerMojo, DevModeMojo

public abstract class AbstractDevModeMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • failOnError

      @Parameter(property="gwt.failOnError") protected Boolean failOnError
      Only succeed if no input files have errors.
    • logLevel

      @Parameter(property="gwt.logLevel") protected String logLevel
      Sets the level of logging detail.
    • modules

      @Parameter(property="gwt.modules") protected String modules
      Comma-delimited list of the modules to run.

      Defaults to the discovered module names from gwt-app projects.

    • projects

      @Parameter(property="gwt.projects") protected String projects
      Comma-delimited list of the reactor projects to run.

      Defaults to all the gwt-app projects in the reactor.

    • classpathScope

      @Parameter(defaultValue="runtime", required=true) protected String classpathScope
      The dependency scope to use for the classpath.

      The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following:

      • compile - system, provided, compile
      • runtime - compile, runtime
      • compile+runtime - system, provided, compile, runtime
      • runtime+system - system, compile, runtime
      • test - system, provided, compile, runtime, test
    • sourceLevel

      @Parameter(property="maven.compiler.source") protected String sourceLevel
      Specifies Java source level.
    • style

      @Parameter(property="gwt.style") protected String style
      Script output style: OBFUSCATED, PRETTY, or DETAILED.
    • jvmArgs

      @Parameter protected List<String> jvmArgs
      Arguments to be passed to the forked JVM (e.g. -Xmx)
    • jvm

      @Parameter protected String jvm
      Path to the Java executable to use. By default, will use the configured toolchain, or fallback to the same JVM as the one used to run Maven.
    • jdkToolchain

      @Parameter protected Map<String,String> jdkToolchain
      Requirements for this jdk toolchain, if jvm is not set.

      This overrides the toolchain selected by the maven-toolchains-plugin.

    • systemProperties

      @Parameter protected Map<String,String> systemProperties
      List of system properties to pass to the GWT compiler.
    • reactorProjects

      @Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected List<org.apache.maven.project.MavenProject> reactorProjects
    • project

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

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

      @Inject protected org.apache.maven.toolchain.ToolchainManager toolchainManager
  • Constructor Details

    • AbstractDevModeMojo

      public AbstractDevModeMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getMainClass

      protected abstract String getMainClass()
    • getWorkDir

      protected abstract File getWorkDir()
    • getSpecificArguments

      protected abstract Collection<String> getSpecificArguments(Set<String> sources)
    • prependSourcesToClasspath

      protected boolean prependSourcesToClasspath()
    • forceMkdirs

      protected abstract void forceMkdirs() throws IOException
      Throws:
      IOException