Class MergeWebXmlMojo

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

    @Mojo(name="mergewebxml",
          defaultPhase=PROCESS_RESOURCES,
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class MergeWebXmlMojo
    extends AbstractGwtWebMojo
    Merges GWT servlet elements into deployment descriptor (and non GWT servlets into shell).

    If you use scanRemoteServiceRelativePathAnnotation you must bind this mojo to at least compile phase Because the classpath scanner need to see compile classes

    Version:
    $Id$
    Author:
    cooper
    • Constructor Detail

      • MergeWebXmlMojo

        public MergeWebXmlMojo()
    • Method Detail

      • isGenerator

        protected boolean isGenerator()
        Description copied from class: AbstractGwtMojo
        Whether to use processed resources and compiled classes (false), or raw resources (true ).
        Overrides:
        isGenerator in class AbstractGwtMojo
      • doExecute

        public void doExecute()
                       throws org.apache.maven.plugin.MojoExecutionException,
                              org.apache.maven.plugin.MojoFailureException
        Specified by:
        doExecute in class AbstractGwtShellMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException