Intellij 12-无法重新导入模块 [英] Intellij 12 - Can't Reimport Module

查看:70
本文介绍了Intellij 12-无法重新导入模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我今天遇到了一个奇怪的问题.我在IntelliJ中的一个模块中遇到了一些问题,因此我决定应该尝试将其淘汰,然后从新的结帐中对其进行重建.我从项目"窗口中删除了该模块,然后从文件系统中删除/重新下载了该文件.

So I ran into a strange problem today. I was having some issues with one of my modules in IntelliJ so I decided I should try blowing it out and rebuilding it from a fresh checkout. I deleted the module from the Project window and then deleted / redownloaded from my file system.

我回到Intellij并尝试导入模块.它引导我完成了选择选项的正常步骤,然后似乎成功了.只有它没有再出现在我的项目窗口中.

I went back to Intellij and tried importing the module. It took me through the normal steps of selecting options and then seemed to succeed. Only it didn't reappear in my projects window.

我不确定我做了什么,但是目前还不能重新创建整个项目.我希望有人能阐明Intellij为什么生我的气.

I'm not sure what I did, but recreating the whole project isn't an option at this point. I'm hoping someone can shine some light on why Intellij is angry with me.

系统规格:Mac OSX Mountain LionIntelliJ 12.1.4

System Specs: Mac OSX Mountain Lion IntelliJ 12.1.4

推荐答案

啊哈!我想我找到了答案.

Ah ha! I think I found the answer.

在我的.idea项目文件夹中,有一个misc.xml.在这个文件中,我发现了

In my .idea project folder there is a misc.xml. In this file I found

<option name="ignoredFiles">
    <set>
        <option value="$PROJECT_DIR$/../Projects/.../module/pom.xml />
    </set>
</option>

我删除了该文件,还清理了与模块相关的其他区域中的一些重复条目,因此我可以再次导入.

I removed that and also cleaned up some duplicate entries from other areas that pertained to my module and I was able to import again.

IntelliJ至少要休息一天!

IntelliJ is pacified for at least another day!

这篇关于Intellij 12-无法重新导入模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆