Reputation: 1993
I am using: IntelliJ IDEA 11.1.3 (Community edition) and Maven 3.0.4.
The project contains several modules, one of them creates a war-file. When I use "mvn idea:idea" IntelliJ is unable to load this module for some reason. The error message is: "10:40:04 AM Error Loading Project: Cannot load module"
I can fix the problem by manually importing existing module, but this is a very annoying problem. Does anyone know why this happens, could it be a maven or intellij problem? Is it something I can do to fix it?
Upvotes: 3
Views: 7237
Reputation: 22392
I was getting the same error on Mac (i.e. "Error Loading Project: Cannot load module") too. This is how mine was fixed.
That made it work for me, hope this helps you too :)
Upvotes: 0
Reputation: 69025
mvn idea:idea
is no longer used. The official page for the plugins usage states Apache Maven IDEA Plugin (RETIRED)
.
You can directly do File -> Import project
and select pom.xml
file.
Upvotes: 0
Reputation: 48105
Just open the project by pointing to the pom.xml
file. Skip the maven-idea-plugin
, it is obsolete.
The maven-idea-plugin
has not been active since 2008.
Upvotes: 6
Reputation: 402453
mvn idea:idea
is obsolete and should not be used, it's known to cause problems. Just open pom.xml
directly from IDEA and it will import the Maven project.
To import with more options create a new project from the external Maven model.
Upvotes: 5