java - Intellij IDEA。总是显示 maven 的 `target` 目录

标签 java maven intellij-idea

使用 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/

相关文章:

java - 未注释的参数会覆盖@NotNull参数

java - 智能 : Shortcut for seeing usages of (the routines of) an imported class

java - java中的非法状态异常

java - 不建议使用SingleThreadModel并不能保证线程安全,在Servlet中保证线程安全的最佳解决方案/设计方法是什么?

java - 如何使用扫描仪循环用户输入并获取负整数的最大值

java - 与 Maven 的雪花连接,类路径上的 jar

java - Maven 编译器插件使用自动 java 9 模块失败

java - 对此 Java 示例中的 "super"关键字感到困惑

java - Eclipse - 导入现有的 Maven 项目会出现 Unsupported IClasspathEntry kind=4 错误

linux - 需要修改 KDEInit 入口