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.

This entry was posted in New Features and tagged , . Bookmark the permalink.

8 Responses to New Ways of Setting up Packaging Configurations

  1. Erica says:

    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. Stephan Anft says:

    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. Adam says:

    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. Nikolay Chashnikov says:

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

  5. sam says:

    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. engin says:

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

  7. Valen says:

    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. Nikolay Chashnikov says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *