Creating WAR Files

See Also

During development, a web module is typically executed from its directory structure, that is, its unpacked form, to facilitate frequent and direct updates. However, once the contents of the web module are ready for deployment, the web module can be packaged into a WAR (web archive) file for easy transfer.

To package a web module directory into a WAR file:

  1. In the Filesystems window, right-click the WEB-INF node, and choose Export WAR File from the contextual menu.
  2. In the Choose WAR File Name dialog box, navigate to the desired directory, type a name for the WAR file, and click OK. You do not need to add the .war extension.
tip  If the Export WAR File command does not appear on the contextual menu, ensure that you have mounted the root directory of the web module to be packaged.

A WAR file is created. By default, all files (with the exception of .java files) under the web module file system are included.

tip  Note that web module packaging is affected by the properties set in the Archive section of the WEB-INF property sheet. For more information, see Editing Web Module Archive Properties.
See Also

About WAR Files
WAR File Node
Editing Web Module Archive Properties
Adding External Resources to WAR Files


Legal Notices