Class GwtSourcesJarMojo

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

    @Mojo(name="source-jar",
          defaultPhase=PACKAGE,
          threadSafe=true)
    public class GwtSourcesJarMojo
    extends AbstractGwtModuleMojo
    Add GWT java source code and module descriptor as resources to project jar. Alternative to gwt:resources for better Eclipse projects synchronization.
    Author:
    Vlad Skarzhevskyy
    • Constructor Detail

      • GwtSourcesJarMojo

        public GwtSourcesJarMojo()
    • 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
        See Also:
        Mojo.execute()
      • getAllResourceFiles

        protected java.util.Collection<org.codehaus.mojo.gwt.GwtResourcesBaseMojo.ResourceFile> getAllResourceFiles()
                                                                                                             throws org.apache.maven.plugin.MojoExecutionException
        Collect GWT java source code and module descriptor to be added as resources.
        Throws:
        org.apache.maven.plugin.MojoExecutionException