Unable to load intellij module when using mvn idea:idea

后端 未结 4 1912
别跟我提以往
别跟我提以往 2020-12-11 09:54

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:ide

相关标签:
4条回答
  • 2020-12-11 10:11

    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.

    0 讨论(0)
  • 2020-12-11 10:18

    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.

    enter image description here

    0 讨论(0)
  • 2020-12-11 10:24

    I was getting the same error on Mac (i.e. "Error Loading Project: Cannot load module") too. This is how mine was fixed.

    1. Tap with two finger on the Trackpad (kind of right click in away) on pom.xml file.
    2. Go down in the menu to "Maven" and then select "Reimport".

    That made it work for me, hope this helps you too :)

    enter image description here

    0 讨论(0)
  • 2020-12-11 10:28

    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.

    0 讨论(0)
提交回复
热议问题