maven-plugins/war/xdocs/properties.xml
smor e4c0d4dad8 o Added a property to specify the directory of the webapp dir.
o Documented the new property in properties.xml

In some cases it might be different from the war dir, so this allows one to
change it in its project.properties file.

It defaults to ${maven.war.build.dir}/${pom.artifactId}.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113164 13f79535-47bb-0310-9956-ffa450edef68
2003-03-21 01:26:29 +00:00

87 lines
2.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<title>War Properties</title>
<author email="vmassol@octo.com">Vincent Massol</author>
</properties>
<body>
<section name="War Settings">
<table>
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
<tr>
<td>maven.war.src</td>
<td>Yes</td>
<td>
Location of where the webapp is located in the source tree. Your
<code>WEB-INF</code> directory must be located right under
<code>${maven.war.src}</code>. It defaults to
<code>${maven.src.dir}/webapp</code>.
</td>
</tr>
<tr>
<td>maven.war.webxml</td>
<td>Yes</td>
<td>
Location of the <code>web.xml</code> file. It defaults to
<code>${maven.war.src}/WEB-INF/web.xml</code>.
</td>
</tr>
<tr>
<td>maven.war.classes.includes</td>
<td>Yes</td>
<td>
Classes to include from WEB-INF/classes
Note: Classes are relative to
<code>${maven.build.dir}</code>.
</td>
</tr>
<tr>
<td>maven.war.classes.excludes</td>
<td>Yes</td>
<td>
Classes to exclude from WEB-INF/classes
Note: Classes are relative to
<code>${maven.build.dir}</code>.
</td>
</tr>
<tr>
<td>maven.war.build.dir</td>
<td>Yes</td>
<td>
Directory where the war will be generated. It defaults
to <code>${maven.build.dir}</code>.
</td>
</tr>
<tr>
<td>maven.war.webapp.dir</td>
<td>Yes</td>
<td>
Directory where the webapp will be generated. It defaults to
<code>${maven.war.build.dir}/${pom.artifactId}</code>.
</td>
</tr>
</table>
</section>
<section name="Including Jars in the Webapp">
<p>
You must tell Maven what jars you want included in the Webapp. This
is achieved by specifying meta-information in the POM, using the
following syntax:
</p>
<source><![CDATA[
<dependency>
<id>jarid</id>
<version>jarversion</version>
<properties>
<war.bundle.jar>true</war.bundle.jar>
</properties>
</dependency>
]]></source>
</section>
</body>
</document>