使用 Intellij IDEA 创建 maven 项目时,默认情况下 target
目录在项目资源管理器中不可见。但是我可以通过从模块设置中的排除文件夹中删除它来使其可见。但它只能在短时间内工作,并且在 10-15 分钟后 target
目录再次不可见。所以我需要再次进入模块设置并从排除目录中删除 target
目录。
如何使 maven 的 target
目录永远可见?
最佳答案
尝试取消选中 Settings - Project Settings - Maven - Importing
下的 Exclude build directory 复选框。
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.
关于java - Intellij IDEA。总是显示 maven 的 `target` 目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14273153/