使用 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屋!