⌘; or ⌘;⌘; or ⌘;⌘; or ⌘;^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S
Use this tab to configure layouts of the artifacts. The tab consists of the following areas:
- Artifact Layout pane, where you can complete the layout of an artifact by adding or removing elements, and changing their order. Use the toolbar buttons, the context menu, or drag elements from the Available Elements pane.
-
Available Elements pane, which shows modules, libraries, facet resources,
and artifact layouts that are currently available in the project
and are not included in the current artifact.
Add these items by dragging and dropping them to the desired location in the Artifact Layout Pane or by using the commands of the context menu. - Manifest File Properties Area, which is available for JAR, WAR, or EAR archives, and shows the manifest file settings for the currently selected archive.
For the details on common options, click here.
Artifact layout pane: toolbar
Artifact layout pane: context menu
Most of the actions below can be also invoked through the toolbar buttons. This section describes functions that are available only through the context menu.
| Item | Description |
|---|---|
| Extract Artifact | Use this option to have a set of elements in the layout tree grouped and presented as a separate artifact. |
| Inline Artifact | Use this option to have the selected artifact disassembled and its its components presented as independent elements. |
| Rename | Select this option to assign the selected folder or archive a new name. |
| Navigate | Select this option to switch to the settings of the selected item.
|
| Find Usages | Select this option to view a list of layouts in which the selected element is included. |
| Expand All | Select this option to have all the nodes in the pane unfolded. |
| Collapse All | Select this option to have all the nodes in the pane collapsed. |
Available elements pane
| Menu Item | Description |
|---|---|
| Put into | Select this option to have the current element added to the artifact layout "as is".
When this command is applied, IntelliJ IDEA adds the selected element to the default location
depending on the type of the artifact and the element. For example,
module output of a web module
by default will be added below WEB-INF/classes,
while a library will be added to WEB-INF/lib.
Alternatively, double-click an element to add it to default location, or just drag-and-drop to the location of your choice. |
| Pack into | Select this option to have the current module output packed into a jar archive with the same name. |
| Navigate | Select this option to switch to the settings of selected item.
|
| Find Usages | Select this option to view a list of layouts in which the selected element is included. |
| Expand All | Select this option to have all the nodes in the pane unfolded. |
| Collapse All | Select this option to have all the nodes in the pane collapsed. |
Manifest file properties area
| Menu Item | Description |
|---|---|
| Manifest File | The read-only field shows the name of the manifest file of the current artifact layout. |
| Main Class | In this text box, specify the fully qualified name of the class that will be used as the main-class
entry of the manifest file.
If necessary, click the Browse button
and choose the desired main class in the Select Main Class dialog box, that opens.
You can search for the main class by name or browse through the project tree.
|
| Class Path | In this text box, specify the class-path attribute
of the manifest.mf file.
This attribute contains a space separated list of JARs that the current archive depend on.
When the current archive is run as an executable JAR or on an application server,
the JARs from the list are added to the classpath,
thus making their classes available for classes of the currently selected archive.
|
| Create Manifest | Click this button to have a missing manifest file generated, and specify the location for it in the dialog that opens. |
| Use Existing Manifest | Click this button to have an existing manifest file used and specify its location in the Specify Path dialog box, that opens. |
and choose the desired main class in the