IntelliJ IDEA 2016.1 Help

Configuring Artifacts: Layout Structure

To configure the structure of an artifact

  1. Open the Output Layout tab.
  2. In the Artifact Layout pane, select the desired parent node where a folder or an archive should be created.
  3. Create the artifact structure, using the toolbar buttons or the context menu commands of the Artifact Layout pane.

    For example:

    • To create an empty folder, click the Create Directory button icon_newFolder.png and specify the folder name.
    • To create an archive, click the Create Archive button icon_create_archive.png and specify the archive name.
    • You can also add copies of the specified elements, for example, the output of an artifact can be included into another artifact.
      1. The entire output of the selected artifact will be copied to the specified place in the output of the target artifact.
      2. If the output directory of the included artifact contains files produced by an external process (e.g. by an Ant task specified as post-processing task for the artifact or the output directory points to an existing folder on disk), all these files will be copied to the target artifact as well as the files explicitly specified in the output layout of the included artifact.

      Refer to the description of the Add Copy of button addCopyOf for details.

  4. Fill in the artifact with elements. To do that, select an element in the Available Elements pane, and do one of the following:
    • Drag and drop it to the desired location.
    • Double click this element to add it to the default location.
    • On the context menu of the element, choose Put into.

    Refer to the description of the context menu commands for details.

  5. If a JAR, WAR, or EAR archive has been created, you can opt to define its manifest file by creating a new one or using an existing one. See description of the Manifest File Properties Area.

See Also

Reference:

Concepts:

Last modified: 13 July 2016