gwt:source-jar
Full name:
org.codehaus.mojo:gwt-maven-plugin:2.5.1:source-jar
Description:
Add GWT java source code and module descriptor as resources to
project jar. Alternative to gwt:resources for better Eclipse
projects synchronization.
Attributes:
- Requires a Maven project to be executed.
- Binds by default to the lifecycle phase: package.
Required Parameters
| Name |
Type |
Since |
Description |
| finalName |
String |
- |
Name of the generated JAR. Default value is: ${project.build.finalName}. |
| 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 |
| archive |
MavenArchiveConfiguration |
- |
The archive configuration to use. See Maven
Archiver Reference.
|
| gwtSdkFirstInClasspath |
boolean |
2.1.0-1 |
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 Default value is: false. |
| 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. |
| module |
String |
- |
A single GWT module. Shortcut for <modules> or option to
specify a single module from command line
|
| modules |
String[] |
- |
The project GWT modules. If not set, the plugin will scan the
project for .gwt.xml files.
|
| 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}. |
Parameter Details
archive:
- Type: org.apache.maven.archiver.MavenArchiveConfiguration
- Required: No
finalName:
Name of the generated JAR.
- Type: java.lang.String
- Required: Yes
- Expression: ${jar.finalName}
- Default: ${project.build.finalName}
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:
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
- Expression: ${gwt.gwtSdkFirstInClasspath}
- Default: false
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
- Expression: ${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
- Expression: ${gwt.module}
modules:
The project GWT modules. If not set, the plugin will scan the
project for .gwt.xml files.
- Type: java.lang.String[]
- Required: No
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
- Expression: ${gwt.war}
- Default: ${project.build.directory}/${project.build.finalName}