You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sn...@apache.org on 2007/10/14 10:20:20 UTC

svn commit: r584506 - /maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt

Author: snicoll
Date: Sun Oct 14 01:20:20 2007
New Revision: 584506

URL: http://svn.apache.org/viewvc?rev=584506&view=rev
Log:
Better integreate the zip overlay feature in the document.

Modified:
    maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt

Modified: maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt?rev=584506&r1=584505&r2=584506&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt (original)
+++ maven/plugins/trunk/maven-war-plugin/src/site/apt/overlays.apt Sun Oct 14 01:20:20 2007
@@ -129,6 +129,11 @@
  |   `-- websource.jsp
 +-----------------+
 
+* Overlay types
+
+  The war plugin handles both <<war>> and <<zip>> artifacts. However, for backard compatibility reason, zip
+  overlays are handled only if they are defined explicitely in the plugin's configuration.
+
 
 * Configuring Overlays
 
@@ -150,6 +155,10 @@
   * <<excludes>> - sets the files to exclude. By default, the <<<META-INF>>> directory
   is excluded.
 
+  * <<targetPath>> - sets the target relative path in the webapp structure, which is only
+  available for <<war>> overlays. By default, the content of the overlay is added in the root
+  structure of the webapp.
+
   * <<skip>> - set to true to skip this overlay. Default is false.
 
   For instance, to exclude the <<<sampleimage-dependency.jpg>>> of our
@@ -335,14 +344,8 @@
 
 * Zip dependencies with overlays
 
-  The plugin now handles zip dependencies and can extract content to the webapp directory. 
-  
-  <<To preserve backward compatibility and some user workaround this features is disabled by default.>>
-  
-  To enable this you have to declare your zip dependency in the overlays mojo configuration section.
-  
-  A sample configuration for a zip (groupId : zipGroupId, artifactId : zipId). 
-  With this configuration, the zip content will be in webappDirectory/scripts/.  
+  To use a <<zip>> dependency as an overlay you have to configure it explicitely in the plugins's configuration. For
+  instance to inject the content of a zip overlay in the <<scripts>> directory of the webapp, do as follows:
 
 +-----------------+
  [...]
@@ -354,8 +357,7 @@
          <overlays>
             <overlay>
               <groupId>zipGroupId</groupId>
-              <artifactId>zipId</artifactId>
-              <!-- optionnal the path to put zip content -->
+              <artifactId>zipArtifactId</artifactId>
               <targetPath>scripts</targetPath>
             </overlay>
           </overlays>