Generates webapp in the source directory
Mojo Attributes :
runtime| Name | Type | Description |
|---|---|---|
| cacheFile | File |
The file containing the webapp structure cache. |
| warSourceDirectory | File |
Single directory for extra files to include in the WAR. |
| webappDirectory | File |
The directory where the webapp is built. |
| workDirectory | File |
Directory to unpack dependent WARs into if needed |
| Name | Type | Description |
|---|---|---|
| archive | MavenArchiveConfiguration |
The maven archive configuration to use. |
| archiveClasses | boolean |
Whether a JAR file will be created for the classes in the webapp. Using this optional configuration
parameter will make the generated classes to be archived into a jar file
and the classes directory will then be excluded from the webapp. Default value is false. |
| containerConfigXML | File |
The path to the context.xml file to use. |
| dependentWarExcludes | String |
The comma separated list of tokens to exclude when doing a war overlay. |
| dependentWarIncludes | String |
The comma separated list of tokens to include when doing a war overlay. Default is '**' |
| filters | List |
Filters (property files) to include during the interpolation of the pom.xml. |
| outputFileNameMapping | String |
The file name mapping to use to copy libraries and tlds. If no file mapping is set (default) the file is copied with its standard name. |
| overlays | List |
The overlays to apply. |
| useCache | boolean |
Whether the cache should be used to save the status of the webapp
accross multiple runs. Default value is true. |
| warSourceExcludes | String |
The comma separated list of tokens to exclude from the WAR. |
| warSourceIncludes | String |
The comma separated list of tokens to include in the WAR. Default is '**'. |
| webResources | Resource[] |
The list of webResources we want to transfer. |
| webXml | File |
The path to the web.xml file to use. |
The maven archive configuration to use.
org.apache.maven.archiver.MavenArchiveConfigurationNoWhether a JAR file will be created for the classes in the webapp. Using this optional configuration parameter will make the generated classes to be archived into a jar file and the classes directory will then be excluded from the webapp.
booleanNo${archiveClasses}falseThe file containing the webapp structure cache.
java.io.File2.1Yes${project.build.directory}/war/work/webapp-cache.xmlThe path to the context.xml file to use.
java.io.FileNo${maven.war.containerConfigXML}The comma separated list of tokens to exclude when doing a war overlay.
java.lang.StringNoThe comma separated list of tokens to include when doing a war overlay. Default is '**'
java.lang.StringNoFilters (property files) to include during the interpolation of the pom.xml.
java.util.ListNo${project.build.filters}The file name mapping to use to copy libraries and tlds. If no file mapping is set (default) the file is copied with its standard name.
java.lang.String2.0.3NoThe overlays to apply.
java.util.List2.1NoWhether the cache should be used to save the status of the webapp accross multiple runs.
boolean2.1No${useCache}trueSingle directory for extra files to include in the WAR.
java.io.FileYes${basedir}/src/main/webappThe comma separated list of tokens to exclude from the WAR.
java.lang.StringNoThe comma separated list of tokens to include in the WAR. Default is '**'.
java.lang.StringNoThe list of webResources we want to transfer.
org.apache.maven.model.Resource[]NoThe path to the web.xml file to use.
java.io.FileNo${maven.war.webxml}The directory where the webapp is built.
java.io.FileYes${project.build.directory}/${project.build.finalName}Directory to unpack dependent WARs into if needed
java.io.FileYes${project.build.directory}/war/work