Idea logo

The IntelliJ IDEA Blog

The Capable & Ergonomic Java IDE by JetBrains


New Ways of Setting up Packaging Configurations

IntelliJ IDEA 9 (Maia) brings a more powerful and flexible way to set up packaging configurations (artifacts) for your project. Artifacts are configured in Project Structure dialog:

Output layout of an artifact is displayed in a tree. You can edit it with Alt+Ins and Delete shortcuts, and by using drag-and-drop.

You can build artifact at any time from the main menu (Build | Build Artifact | <artifact name>), or you can automate it with the use of Build on make option in artifact settings, and Build Artifacts option in run configuration settings:

These features will be available in the next Maia EAP (around next Monday). Packaging configurations of existing JavaEE facets are migrated to artifacts automatically.

Comments below can no longer be edited.

8 Responses to New Ways of Setting up Packaging Configurations

  1. Avatar

    Erica says:

    October 7, 2009

    This is a must have if you’ve got lots of intertwining projects or a really large one. I wish this existed sooner when I had loads of university work to do!

  2. Avatar

    Stephan Anft says:

    October 16, 2009

    Absolutely nice! Anyhow, there is one thing that I would like to see in addition. The current artifact editor checks if all dependencies are also contained in the artifact. If for example my module depends on Hibernate libraries, the artifact editor shows a warning as long as the Hibernate libraries are not added to the artifact. However, if the artifact is about to be deployed on a JBoss server, the Hibernate libraries are already present and don’t have to be included in the artifact. It would be nice if there would be some kind of function that would allow me to mark a library as “not required” or “compile only” in the artifact editor.


  3. Avatar

    Adam says:

    October 16, 2009

    I am having problem with a compile output. The folder ‘classes’ simply is not created although it works for ‘lib’ directory. Any suggestions ? (Maia 90.94)

  4. Avatar

    Nikolay Chashnikov says:

    October 16, 2009

    This bug is already fixed (see The fix will be available in next EAP build.

  5. Avatar

    sam says:

    October 19, 2009

    intellij wont create jar archives if they doesn’t contain a main class.
    creating libraries isn’t possible with 90.94 without handmade ant or maven script.
    mixing artifacts is difficult because there is no sorting except the artifact name.

  6. Avatar

    engin says:

    December 14, 2009

    yes we were able to build jar in idea7 and idea8 but idea9

  7. Avatar

    Valen says:

    March 11, 2010

    hi there, Im new with Intellij and I dont know how to create a war file with this IDE, somebody has a tutorial or ducumentatition about it, thaks a lot

  8. Avatar

    Nikolay Chashnikov says:

    March 12, 2010

    Open “Project Structure” dialog, select “Artifacts” item, press ‘+’ button to create a war artifact. After that you’ll be able to build the war by using Build | Build Artifact menu item.

Discover more