I'm trying to create a jar artifact which includes everything required to setup and build the project in IDEA. I can include project files (contents of .idea directory), sources, etc without problems. However, I can't figure out how to include module descriptor files (*.iml) in the jar. I can add them manually to the artifact (see screenshot), but after the artifact is built, they're missing from it. Any way to solve this problem? I really, really do not want to resort to going the And route at the moment :-(.