使用mvn idea:idea时无法加载intellij模块 [英] Unable to load intellij module when using mvn idea:idea
问题描述
我正在使用:IntelliJ IDEA 11.1.3(社区版)和Maven 3.0.4。
I am using: IntelliJ IDEA 11.1.3 (Community edition) and Maven 3.0.4.
该项目包含几个模块,其中一个创建了一个战争文件。
当我使用mvn idea:idea时,IntelliJ由于某种原因无法加载此模块。
错误信息是:
上午10:40:04错误加载项目:无法加载模块
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"
我可以通过手动修复问题导入现有模块,但这是一个非常烦人的问题。有谁知道为什么会发生这种情况,它可能是maven或intellij问题吗?我可以做些什么来解决它?
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?
推荐答案
只需通过指向 pom打开项目.xml
文件。跳过 maven-idea-plugin
,它已经过时了。
Just open the project by pointing to the pom.xml
file. Skip the maven-idea-plugin
, it is obsolete.
maven-idea-plugin
自2008年以来一直没有活跃。
The maven-idea-plugin
has not been active since 2008.
这篇关于使用mvn idea:idea时无法加载intellij模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!