Intellij IDEA。始终显示maven的`target`目录 [英] Intellij IDEA. Always show maven's `target` directory
问题描述
使用Intellij IDEA创建maven项目时,默认情况下 target
目录在Project explorer中不可见。但是我可以通过从模块设置中的排除文件夹中删除它来使其可见。但它只能在短时间内工作,并且在10-15分钟后目标
目录再次不可见。所以我需要再次进入模块设置并从Excluded目录中删除 target
目录。
When creating maven project using Intellij IDEA, by default target
directory is not visible in Project explorer. But I can make it visible by removing it from excluded folders in module settings. But it work only for short period of time, and after 10-15 minutes target
directory again invisible. So I need again go to module settings and remove target
directory from Excluded directories.
我如何制作可见的maven's永久目标
目录?
How I can make visible maven's target
directory forever?
推荐答案
尝试取消选中设置 - 项目下的排除构建目录复选框设置 - Maven - 导入
。
Try to uncheck the Exclude build directory checkbox under Settings - Project Settings - Maven - Importing
.
来自IDEA帮助的说明:
Description from IDEA help:
选中此复选框可从项目中排除构建目录。如果您想加快项目的导入过程,这可能很有用。如果清除此复选框,则每次导入项目时,IntelliJ IDEA都会对构建目录中的文件编制索引,这可能需要额外的时间。
Select this check box to exclude a build directory from the project. This might be useful, if you want to speed up the project's importing process . If this check box is cleared, IntelliJ IDEA will index files in the build directory every time you import a project which might take additional time.
这篇关于Intellij IDEA。始终显示maven的`target`目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!