Fork me on GitHub

gwt:eclipse

Full name:

org.codehaus.mojo:gwt-maven-plugin:2.8.2-SNAPSHOT:eclipse

Description:

Goal which creates Eclipse lauch configurations for GWT modules.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Invokes the execution of the lifecycle phase generate-resources prior to executing itself.

Required Parameters

Name Type Since Description
generateDirectory File - Folder where generated-source will be created (automatically added to compile classpath).
Default value is: ${project.build.directory}/generated-sources/gwt.

Optional Parameters

Name Type Since Description
additionalPageParameters String - Additional parameters to append to the module URL. For example, gwt-log users will set "log_level=DEBUG"
bindAddress String - Set GWT shell bindAddress.

Can be set from command line using '-Dgwt.bindAddress=...'


User property is: gwt.bindAddress.
blacklist String - Set GWT shell protocol/host blacklist.

Can be set from command line using '-Dgwt.blacklist=...'


User property is: gwt.blacklist.
extraJvmArgs String - Extra JVM arguments that are passed to the GWT-Maven generated scripts (for compiler, shell, etc - typically use -Xmx512m here, or -XstartOnFirstThread, etc).

Can be set from command line using '-Dgwt.extraJvmArgs=...', defaults to setting max Heap size to be large enough for most GWT use cases.


Default value is: -Xmx512m.
User property is: gwt.extraJvmArgs.
gwtSdkFirstInClasspath boolean 2.1.0-1 Deprecated. tweak your dependencies and/or split your project with a client-only module
Default value is: false.
User property is: gwt.gwtSdkFirstInClasspath.
hostedWebapp File - Location of the hosted-mode web application structure.
Default value is: ${project.build.directory}/${project.build.finalName}.
inplace boolean - Select the place where GWT application is built. In inplace mode, the warSourceDirectory is used to match the same use case of the war:inplace http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html goal.
Default value is: false.
User property is: gwt.inplace.
module String - A single GWT module. Shortcut for <modules> or option to specify a single module from command line
User property is: gwt.module.
modulePathPrefix String - Prefix to prepend to module names inside webappDirectory or in URLs in DevMode.

Could also be seen as a suffix to webappDirectory.


User property is: gwt.modulePathPrefix.
modules String[] - The project GWT modules. If not set, the plugin will scan the project for .gwt.xml files.
noserver boolean - Run without hosted mode server
Default value is: false.
User property is: gwt.noserver.
port int - Port of the HTTP server used when noserver is set
Default value is: 8080.
User property is: gwt.port.
useGoogleEclipsePlugin boolean - Setup a launch configuration for using the Google Eclipse Plugin. This is the recommended setup, as the home-made launch configuration has many limitations. This parameter is only for backward compatibility, the standard lauch configuration template will be removed in a future release.
Default value is: true.
User property is: use.google.eclipse.plugin.
warSourceDirectory File - Location of the web application static resources (same as maven-war-plugin parameter)
Default value is: ${basedir}/src/main/webapp.
webappDirectory File - Location on filesystem where GWT will write output files (-out option to GWTCompiler).
Default value is: ${project.build.directory}/${project.build.finalName}.
User property is: gwt.war.
whitelist String - Set GWT shell protocol/host whitelist.

Can be set from command line using '-Dgwt.whitelist=...'


User property is: gwt.whitelist.

Parameter Details

additionalPageParameters:

Additional parameters to append to the module URL. For example, gwt-log users will set "log_level=DEBUG"
  • Type: java.lang.String
  • Required: No

bindAddress:

Set GWT shell bindAddress.

Can be set from command line using '-Dgwt.bindAddress=...'

  • Type: java.lang.String
  • Required: No
  • User Property: gwt.bindAddress

blacklist:

Set GWT shell protocol/host blacklist.

Can be set from command line using '-Dgwt.blacklist=...'

  • Type: java.lang.String
  • Required: No
  • User Property: gwt.blacklist

extraJvmArgs:

Extra JVM arguments that are passed to the GWT-Maven generated scripts (for compiler, shell, etc - typically use -Xmx512m here, or -XstartOnFirstThread, etc).

Can be set from command line using '-Dgwt.extraJvmArgs=...', defaults to setting max Heap size to be large enough for most GWT use cases.

  • Type: java.lang.String
  • Required: No
  • User Property: gwt.extraJvmArgs
  • Default: -Xmx512m

generateDirectory:

Folder where generated-source will be created (automatically added to compile classpath).
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/generated-sources/gwt

gwtSdkFirstInClasspath:

Deprecated. tweak your dependencies and/or split your project with a client-only module
The forked command line will use gwt sdk jars first in classpath. see issue http://code.google.com/p/google-web-toolkit/issues/detail?id=5290
  • Type: boolean
  • Since: 2.1.0-1
  • Required: No
  • User Property: gwt.gwtSdkFirstInClasspath
  • Default: false

hostedWebapp:

Location of the hosted-mode web application structure.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/${project.build.finalName}

inplace:

Select the place where GWT application is built. In inplace mode, the warSourceDirectory is used to match the same use case of the war:inplace http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html goal.
  • Type: boolean
  • Required: No
  • User Property: gwt.inplace
  • Default: false

module:

A single GWT module. Shortcut for <modules> or option to specify a single module from command line
  • Type: java.lang.String
  • Required: No
  • User Property: gwt.module

modulePathPrefix:

Prefix to prepend to module names inside webappDirectory or in URLs in DevMode.

Could also be seen as a suffix to webappDirectory.

  • Type: java.lang.String
  • Required: No
  • User Property: gwt.modulePathPrefix

modules:

The project GWT modules. If not set, the plugin will scan the project for .gwt.xml files.
  • Type: java.lang.String[]
  • Required: No

noserver:

Run without hosted mode server
  • Type: boolean
  • Required: No
  • User Property: gwt.noserver
  • Default: false

port:

Port of the HTTP server used when noserver is set
  • Type: int
  • Required: No
  • User Property: gwt.port
  • Default: 8080

useGoogleEclipsePlugin:

Setup a launch configuration for using the Google Eclipse Plugin. This is the recommended setup, as the home-made launch configuration has many limitations. This parameter is only for backward compatibility, the standard lauch configuration template will be removed in a future release.
  • Type: boolean
  • Required: No
  • User Property: use.google.eclipse.plugin
  • Default: true

warSourceDirectory:

Location of the web application static resources (same as maven-war-plugin parameter)
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/webapp

webappDirectory:

Location on filesystem where GWT will write output files (-out option to GWTCompiler).
  • Type: java.io.File
  • Required: No
  • User Property: gwt.war
  • Default: ${project.build.directory}/${project.build.finalName}

whitelist:

Set GWT shell protocol/host whitelist.

Can be set from command line using '-Dgwt.whitelist=...'

  • Type: java.lang.String
  • Required: No
  • User Property: gwt.whitelist