Maven plugin does not create .iml files

Am I missing something really basic?
In my Maven integration settings I check the following checkbox: create regular IntelliJ IDEA modules (will require manual synchronization with Maven projects)
and then I hit 'Synchronize with Maven projects' button.
I have one maven module wiht the packaging 'pom' and 2 child modules. No IDEA module files (.iml) are generated. I only see project .ipr file and .iws file.

I havn't seen a JIRA issue filed for this case so I assume that either I am missing something or this option (create regular IntelliJ IDEA modules...) of maven integration does not work.

Oh, and I use build #7346 but the same behaviour was observed with previous builds as well.

5 comments

Quick update.
If I create new project and import maven projects during new project creation then .iml files ARE generated. So there is a workaround. But if I open pom.xml as a project (instead of importing pom.xml as a new project) then .iml files are not generated

0

That is defined behavior - if you open pom.xml file no files are generated.
It is 'quick open' feature.

If you want regular IDEA project to be generated you must use 'import project' feature and enable 'create iml files' option.

0

Wouldn't that be better to disable the maven integration option 'create regular IntelliJ IDEA modules (will require manual synchronization with Maven projects)' when this option does not have any effect? It is a bit misleading in the cases where no .iml files are not intented to be generated.

0

Idea should not show any options when you open pom.xml file using 'open project' action.
Could you explain one more time that did you do (step-by-step) please?

0

What I did was this:

1. Go to File->Open project... menu item and choose pom.xml of my project to open (the project is multi module project so there is a parent pom.xml and a number of child pom.xml files)
2. After the project is open go to 'Maven projects' tool window and click on 'Maven settings' button
3. Go to import tab and choose 'Create regular IntelliJ IDEA modules (will require manual synchronization with Maven projects)' radio button
4. Click OK
5. Click 'synchronize with maven projects' button
What I expect at this point is that IDEA will create .iml files for every pom.xml of my project. This does not happen and you pointed out that it is not supposed to happen (I personally think that IDEA should create .iml files in this case but I will bear with you for the sake of argument). My point is this - if 'Create regular IntelliJ IDEA modules (will require manual synchronization with Maven projects)' option of maven integration is not supposed to work in certain cases why not disable the option for those cases?

Cheers.

0

Please sign in to leave a comment.