You can add facets to modules as well as remove them.
When adding facets to a module, take into consideration the facet dependencies, and also the possibility to add multiple instances of the same facet.
- Open the Project Structure dialog (⌘; or ⌘;⌘; or ⌘;⌘; or ⌘;^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S).
- Under Project Settings, select Modules.
-
Select the module you want to add a facet to, click
, and select the facet you want to add.

Note that certain facets have other facets as their parents. To add such facets, you should select a parent facet (rather than the module) prior to clicking
.For example, a parent facet for a JSF or a Struts facet is a Web facet. So a JSF or Struts facet can be added only if a Web facet is currently selected. For more information, see Available Facets and Their Dependencies.
- Configure the facet settings, and click OK in the Project Structure dialog.
- Open the Project Structure dialog (⌘; or ⌘;⌘; or ⌘;⌘; or ⌘;^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S).
- Under Project Settings, select Modules.
- Expand the module node and select the facet to be removed.
- Click
. - Click OK in the Project Structure dialog.
Note that no files are physically deleted as a result.