diff --git a/war/plugin.jelly b/war/plugin.jelly index 6d505b5f..7b7bd05f 100644 --- a/war/plugin.jelly +++ b/war/plugin.jelly @@ -33,51 +33,16 @@ - + Building WAR ${pom.artifactId} - - - - - - - - - - - - - - - - DEPRECATION WARNING: - Use : war.bundle instead of war.bundle.jar - - - - - - - - - - - - - - - - - - - + @@ -99,7 +64,7 @@ - + @@ -113,13 +78,16 @@ - + - + - - + + + + + @@ -128,22 +96,29 @@ - - - + + + + + + + + + + + DEPRECATION WARNING: Use : war.bundle instead of war.bundle.jar - + + diff --git a/war/plugin.properties b/war/plugin.properties index bc4d23cd..5d1d9949 100644 --- a/war/plugin.properties +++ b/war/plugin.properties @@ -18,3 +18,4 @@ maven.war.build.dir = ${maven.build.dir} # Location where the webapp will be created. Defaults to # ${maven.war.build.dir}/${pom.artifactId} maven.war.webapp.dir = ${maven.war.build.dir}/${pom.artifactId} +maven.war.tld.dir=WEB-INF/tld diff --git a/war/xdocs/changes.xml b/war/xdocs/changes.xml index 7b37598f..c19a80f2 100644 --- a/war/xdocs/changes.xml +++ b/war/xdocs/changes.xml @@ -8,6 +8,17 @@ + + war:war goal is simply packaging + (using ant jar task) the directory created + by war:webapp goal. This change simplifies + the customization of processing + and removes code duplication. + + + Fixes for MAVEN-481. + Bundling of tlds in war is supported. + Fixes for MAVEN-518. Artifact processing in the plugin diff --git a/war/xdocs/goals.xml b/war/xdocs/goals.xml index eeaab2b7..cbea0bc2 100644 --- a/war/xdocs/goals.xml +++ b/war/xdocs/goals.xml @@ -9,12 +9,31 @@ war - Build a war file + + Build a war file. + This goal simply executes the war:war goal + war:init Initialize the file system and attain any necessary goals + + war:war + + Build a war file. +
+ This goal simply package the directory created + by war:webapp goal. Additional custome content which should be included + in the archive can be provided using: +
+ <postGoal name="war:webapp"> +
+
+ + war:webapp + Build a webapp directory + war:install Install the war in the local repository @@ -30,15 +49,7 @@ war:deploy-snapshot Deploy the snapshot version of the war to the remote repository(ies) - - - war:war - Build a war file - - - war:webapp - Build a webapp directory - -
+
+ \ No newline at end of file diff --git a/war/xdocs/properties.xml b/war/xdocs/properties.xml index 77e5fac0..6d12a9c5 100644 --- a/war/xdocs/properties.xml +++ b/war/xdocs/properties.xml @@ -62,25 +62,64 @@ ${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 jars you want included in the Webapp. This + 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:

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

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

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