brett 2004/04/07 17:22:27
Modified: war/xdocs index.xml navigation.xml
Removed: war/xdocs tips.xml
Log:
documentation improvement
Revision Changes Path
1.3 +40 -0 maven-plugins/war/xdocs/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/maven-plugins/war/xdocs/index.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index.xml 4 Mar 2004 18:39:37 -0000 1.2
+++ index.xml 8 Apr 2004 00:22:27 -0000 1.3
@@ -30,6 +30,46 @@
This plug-in provides the ability to generate either a deployed webapp
or a webapp packaged as a WAR file.
</p>
+ <subsection name="Bundling dependencies">
+ <p>
+If you need to add extra dependencies in the web application, there are two
+properties you can use.</p>
+<table>
+<tr><td><code>war.bundle</code></td><td>This property includes the dependency in
+<code>/WEB-INF/lib</code></td></tr>
+<tr><td><code>war.target.path</code></td><td>This bundles the dependency in the path
+specified relative to the base of the web application.</td></tr>
+</table>
+<p>For example, the following adds commons-lang to <code>/WEB-INF/lib</code> and
+myApplet to the <code>/applets</code> directory.
+ </p>
+<source><![CDATA[
+ <dependency>
+ <id>commons-lang</id>
+ <version>2.0</version>
+ <properties>
+ <war.bundle>true</war.bundle>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <id>myApplet</id>
+ <version>1.4</version>
+ <properties>
+ <war.target.path>applets</war.target.path>
+ </properties>
+ </dependency>]]></source>
+ </subsection>
+ <subsection name="Filtering web.xml">
+ <p>
+ If you need to copy the web.xml file in order to replace some
+ filter tokens or simply perform some custom modification to it,
+ simply write a pre-goal to the <code>war:war</code> goal in which
+ you perform the manipulation. Then set the
+ <code>maven.war.webxml</code> property to point to your modified
+ <code>web.xml</code>.
+ </p>
+ </subsection>
</section>
</body>
</document>
1.4 +0 -1 maven-plugins/war/xdocs/navigation.xml
Index: navigation.xml
===================================================================
RCS file: /home/cvs/maven-plugins/war/xdocs/navigation.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- navigation.xml 4 Mar 2004 18:39:37 -0000 1.3
+++ navigation.xml 8 Apr 2004 00:22:27 -0000 1.4
@@ -28,7 +28,6 @@
<menu name="Overview">
<item name="Goals" href="/goals.html" />
<item name="Properties" href="/properties.html" />
- <item name="Tips" href="/tips.html"/>
</menu>
</body>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]