New Ways of Setting up Packaging Configurations
October 5th, 2009 by Nikolay ChashnikovIntelliJ 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.



October 7th, 2009 at 4:42 am
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!
October 16th, 2009 at 9:43 am
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.
Regards,
Stephan
October 16th, 2009 at 10:31 am
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)
October 16th, 2009 at 10:52 am
This bug is already fixed (see http://youtrack.jetbrains.net/issue/IDEADEV-40863). The fix will be available in next EAP build.
October 19th, 2009 at 4:35 am
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.
December 14th, 2009 at 2:20 am
yes we were able to build jar in idea7 and idea8 but idea9
March 11th, 2010 at 5:21 am
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
March 12th, 2010 at 3:45 am
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.