Plugin package-war v0.1
Overview
This module provides war packaging feature.
Parameters
The following property values can be changed to tune the behavior of this plugin.
Required parameters must be defined upon import, or the build will fail.
| Parameter | Required? | Description | Default |
|---|---|---|---|
| package.metainf.basedir | No | basedir of the metainf fileset | ${basedir} |
| package.war.needxmlfile | No | Flag to indicate whether or not the web.xml file is needed. Iit should be set to false when generating servlet 2.5+ WAR files without a web.xml file. | false |
| src.main.webapp | Yes | directory where web resources files are stored (like pages, images, etc...) | |
| package.metainf.excludes.pattern | No | Pattern describing files excluded in the META-INF of the package | |
| package.war.excludes.pattern | No | Pattern describing files excluded in the output war | |
| target.artifacts.main.war.name | Yes | main artifact file name | |
| package.war.includes.pattern | No | Pattern describing files included in the output war | **/* |
| package.metainf.includes.pattern | No | Pattern describing files included in the META-INF of the package | NOTICE,LICENSE |
| package.war.webxml.file | No | The servlet configuration descriptor to use (WEB-INF/web.xml). | |
| target.artifacts | Yes | destination directory for target artifacts | |
| manifest.file | Yes | the file used to generate manifest | |
| target.main.classes | Yes | directory where compiled classes that should be packaged are |
Build Phases
This plugin adds targets to each of the following build phases:
- validate
-
- init
- package
-
- war: package project as a WAR
Extra Targets
This plugin defines some extra Ant targets not attached to any build phase:
- doit