Can't add maven module in IntelliJ IDEA
<p>I'm using IntelliJ IDEA 2016.2.1 (Latest version) and I just can't create a new maven module to my project. I have a parent project packaged as pom, as I'm using it just to handle some dependencies and settings across all child modules. In order to create new child modules, all I had to do till now was right click it's name in the project panel, click "New" -> "Module" -> "Maven" and then just complete the name, artifactId, and version fields and hit Finish at the end. The thin is, it does work, but it doesn't show up as a maven module. It looks just like a normal folder in my project view.
I even know why: Normally, maven modules should contain the "isMavenModule" tag marked as true inside the module's iml file, but my iml file doesn't even have that setting:</p>

<pre><code>&lt;module type="JAVA_MODULE" version="4"&gt;
</code></pre>

<p>That's all it has, while my other modules look like this:</p>

<pre><code>&lt;module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"&gt;
</code></pre>

<p>What makes it all even stranger is that I can easily create modules if they have a different name. I tried creating a test module called, well, "test" which I used the exact same way of creating as the other module, with the only difference being it's name. It does work as expected and I can't really see why this happens. While I can technically bypass this issue by manually adding the isMavenModule tag to my module's iml file, I'm intrigued by what is actually causing this.</p>