IntelliJ IDEA 2016.3 Help

Web facet page

File | Project Structure | Modules | <module> | Web
File | Project Structure | Facets | Web (<module>)


Use this page to edit the settings for your Web facet.

ItemDescription
NameThe name of the facet.
Deployment Descriptors Form the list of deployment descriptors for your application.

/help/img/idea/2016.3/new.png (Alt+Insert). Create web.xml and add it to the list. The function is not active if the corresponding descriptor is already present in the list.

/help/img/idea/2016.3/delete.png (Alt+Delete). Remove the selected descriptor from the list.

/help/img/idea/2016.3/editFlexLibraryNew.png (Enter). Replace the selected descriptor with another one of the same type.

Add Application Server specific descriptor. Create an application server-specific deployment descriptor (e.g. glassfish-web.xml, jboss-web.xml) and add it to the list.

Web Resource Directories Specify the directories that contain your web app resources such as web pages, images, etc. (the Web Resource Directory column) and their locations in the corresponding artifact (the Path Relative to Deployment Root column).

For the resource directories to be included in an artifact, you should make sure that the artifact configuration contains a Web facet resources element. (All the resource directories are included in an artifact as a whole.) In that case, / in the Path Relative to Deployment Root column corresponds to the root of that element in the artifact configuration.

Source Roots Select the source roots to be included in an artifact. Note:
  • If the '<ModuleName>' compile output element is present in an artifact configuration, the classes for all the source roots are included in the corresponding artifact irrespective of which source roots are selected here.
  • To include only the classes from the source roots selected on this page, use the following when configuring the artifact: /help/img/idea/2016.3/new.png | JavaEE Facet Classes | Web (in <ModuleName>). As a result, the corresponding element in the artifact configuration will be shown as '<ModuleName>' module: 'Web' facet classes.

See Also

Last modified: 7 December 2016