Class 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 Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String classpathScope
      The dependency scope to use for the classpath.
      protected java.lang.Boolean failOnError
      Only succeed if no input files have errors.
      protected java.util.Map<java.lang.String,​java.lang.String> jdkToolchain
      Requirements for this jdk toolchain, if jvm is not set.
      protected java.lang.String jvm
      Path to the Java executable to use.
      protected java.util.List<java.lang.String> jvmArgs
      Arguments to be passed to the forked JVM (e.g.
      protected java.lang.String logLevel
      Sets the level of logging detail.
      protected java.lang.String modules
      Comma-delimited list of the modules to run.
      protected org.apache.maven.project.MavenProject project  
      protected java.lang.String projects
      Comma-delimited list of the reactor projects to run.
      protected java.util.List<org.apache.maven.project.MavenProject> reactorProjects  
      protected org.apache.maven.execution.MavenSession session  
      protected java.lang.String sourceLevel
      Specifies Java source level.
      protected java.lang.String style
      Script output style: OBFUSCATED, PRETTY, or DETAILED.
      protected java.util.Map<java.lang.String,​java.lang.String> systemProperties
      List of system properties to pass to the GWT compiler.
      protected org.apache.maven.toolchain.ToolchainManager toolchainManager  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      protected abstract void forceMkdirs()  
      protected abstract java.lang.String getMainClass()  
      protected abstract java.util.Collection<java.lang.String> getSpecificArguments​(java.util.Set<java.lang.String> sources)  
      protected abstract java.io.File getWorkDir()  
      protected boolean prependSourcesToClasspath()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • failOnError

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

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

        @Parameter(property="gwt.modules")
        protected java.lang.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 java.lang.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 java.lang.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 java.lang.String sourceLevel
        Specifies Java source level.
      • style

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

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

        @Parameter
        protected java.lang.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 java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​java.lang.String> systemProperties
        List of system properties to pass to the GWT compiler.
      • reactorProjects

        @Parameter(defaultValue="${reactorProjects}",
                   required=true,
                   readonly=true)
        protected java.util.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

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

      • AbstractDevModeMojo

        public AbstractDevModeMojo()
    • Method Detail

      • 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 java.lang.String getMainClass()
      • getWorkDir

        protected abstract java.io.File getWorkDir()
      • getSpecificArguments

        protected abstract java.util.Collection<java.lang.String> getSpecificArguments​(java.util.Set<java.lang.String> sources)
      • prependSourcesToClasspath

        protected boolean prependSourcesToClasspath()
      • forceMkdirs

        protected abstract void forceMkdirs()
                                     throws java.io.IOException
        Throws:
        java.io.IOException