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.

ParameterRequired?DescriptionDefault
package.metainf.basedirNobasedir of the metainf fileset${basedir}
package.war.needxmlfileNoFlag 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.webappYesdirectory where web resources files are stored (like pages, images, etc...)
package.metainf.excludes.patternNoPattern describing files excluded in the META-INF of the package
package.war.excludes.patternNoPattern describing files excluded in the output war
target.artifacts.main.war.nameYesmain artifact file name
package.war.includes.patternNoPattern describing files included in the output war**/*
package.metainf.includes.patternNoPattern describing files included in the META-INF of the packageNOTICE,LICENSE
package.war.webxml.fileNoThe servlet configuration descriptor to use (WEB-INF/web.xml).
target.artifactsYesdestination directory for target artifacts
manifest.fileYesthe file used to generate manifest
target.main.classesYesdirectory 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: