| Property | Optional? | Description |
|---|---|---|
| maven.war.src | Yes |
Location of the webapp in the source tree. Your
WEB-INF directory must be located right under
${maven.war.src}. It defaults to
${maven.src.dir}/webapp.
|
| maven.war.src.includes | Yes |
Comma or space separated list of Ant path patterns specifycing
what files and directories from ${maven.war.src}
should be included in the web application. All files are included
by default.
|
| maven.war.src.excludes | Yes |
Comma or space separated list of Ant path patterns specifycing
what files and directories from ${maven.war.src}
should be excluded from the web application. No files are excluded
by default.
|
| maven.war.webxml | Yes |
Location of the web.xml file. It defaults to
${maven.war.src}/WEB-INF/web.xml.
|
| maven.war.classes.includes | Yes |
Classes to include from WEB-INF/classes
Note: Classes are relative to
${maven.build.dir}.
|
| maven.war.classes.excludes | Yes |
Classes to exclude from WEB-INF/classes
Note: Classes are relative to
${maven.build.dir}.
|
| maven.war.final.name | Yes |
Name of the war file that is built. Defaults to
Use |
| maven.war.build.dir | Yes |
Directory where the war will be generated. It defaults
to ${maven.build.dir}.
|
| maven.war.webapp.dir | Yes |
Directory where the webapp will be generated. It defaults to
${maven.war.build.dir}/${pom.artifactId}.
|
| maven.war.manifest | Yes |
Location of the MANIFEST.MF file in the source tree. It defaults to
${maven.war.src}/META-INF/MANIFEST.MF.
|
| maven.war.index | Yes | Whether to create an index list to speed up classloading. This is a JDK 1.3+ specific feature. Defaults to false. |
| maven.war.tld.dir | Yes |
Subdirectory of web application context root directory
where tag library descriptors (tld files) will be copied.
The Maven WAR Plugin copies to this location all dependencies,
specified in the POM, of the type tld and marked
with a property of war.bundle set to true.
See the section below for more information.
It defaults to WEB-INF/tld.
This setting is adhering to
SUN Code Conventions for the JavaServer Pages
|
You must tell Maven what artifacts you want included in the Webapp. This is achieved by specifying a property in the POM, using the following syntax:
This process is type senstive. Currently following types are supported: