Fork me on GitHub

gwt:package-app

Full name:

net.ltgt.gwt.maven:gwt-maven-plugin:1.0.1:package-app

Description:

Package the compiled GWT application into a WAR-like archive.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
<outputDirectory> String - The directory for the generated WAR.
Default value is: ${project.build.directory}.
<warName> String - The name of the generated WAR.
Default value is: ${project.build.finalName}.

Optional Parameters

Name Type Since Description
<archive> MavenArchiveConfiguration - The archive configuration to use. See Maven Archiver Reference.
<forceCreation> boolean - Require the GWT plugin to build a new WAR even if none of the contents appear to have changed. By default, this plugin looks to see if the output war exists and inputs have not changed. If these conditions are true, the plugin skips creation of the war. This does not work when other plugins, like the maven-shade-plugin, are configured to post-process the war. This plugin can not detect the post-processing, and so leaves the post-processed war in place. This can lead to failures when those plugins do not expect to find their own output as an input. Set this parameter to true to avoid these problems by forcing this plugin to recreate the war every time.
Default value is: false.
User property is: war.forceCreation.

Parameter Details

<archive>

The archive configuration to use. See Maven Archiver Reference.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Required: No

<forceCreation>

Require the GWT plugin to build a new WAR even if none of the contents appear to have changed. By default, this plugin looks to see if the output war exists and inputs have not changed. If these conditions are true, the plugin skips creation of the war. This does not work when other plugins, like the maven-shade-plugin, are configured to post-process the war. This plugin can not detect the post-processing, and so leaves the post-processed war in place. This can lead to failures when those plugins do not expect to find their own output as an input. Set this parameter to true to avoid these problems by forcing this plugin to recreate the war every time.
  • Type: boolean
  • Required: No
  • User Property: war.forceCreation
  • Default: false

<outputDirectory>

The directory for the generated WAR.
  • Type: java.lang.String
  • Required: Yes
  • Default: ${project.build.directory}

<warName>

The name of the generated WAR.
  • Type: java.lang.String
  • Required: Yes
  • Default: ${project.build.finalName}