Class GenerateModuleMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.ltgt.gwt.maven.GenerateModuleMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-module", threadSafe=true, defaultPhase=GENERATE_RESOURCES, requiresDependencyResolution=RUNTIME) public class GenerateModuleMojo extends org.apache.maven.plugin.AbstractMojoGenerates a GWT module definition from Maven dependencies, or merge<inherits/>with a module template.When no module template exist, the behavior is identical to using an empty file.
META-INF/gwt/mainModulefiles from the project dependencies (not transitive) are used to generate<inherits/>directives. Those directives are inserted at the very beginning of the generated module (notably, they'll appear before any existing<inherits/>directive in the module template).If
moduleShortNameis specified (and not empty), it overwrites any existingrename-tofrom the module template.Unless the module template contains a source folder (either
<source/>or<super-source/>, those three lines will be inserted at the very end of the generated module (this is to keep anyincludesorexcludesor specificpathfrom the module template):<source path="client"/> <source path="shared"/> <super-source path="super"/>
-
-
Constructor Summary
Constructors Constructor Description GenerateModuleMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-