War Properties Vincent Massol
PropertyOptional?Description
maven.war.src Yes Location of where the webapp is located 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.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.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.tld.dir Yes Subdirectory of web application context root directory where tag library descriptors (tld files) will be copied. Maven WAR Plugin copies to this location all dependencies (specified in the POM) of the type "tld" and marked with special meta-information. 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 artifact you want included in the Webapp. This is achieved by specifying meta-information in the POM, using the following syntax:

grpId jarid jarversion jar true grpId tldid tldversion tld true ]]>

This process in type senstive. Currently following types are supported:

  1. jar
  2. tld (see: maven.war.tld.dir)