Including module descriptor (.iml) in a Jar artifact?

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 :-(.
artifact.pngartifact-contents.png

0
Avatar
Permanently deleted user

Did you try to rebuild the artifact using Build | 'Build Artifacts' popup?

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

Yes, of course. I also tried rebuilding the artifact via Build Artifacts -> Rebuild and manually cleaning output directory and rebuilding both project and artifact from scratch. No matter what I do, I still can't get IDEA to put the module file inside the artifact.

0

请先登录再写评论。