【问题标题】:How to disable Maven auto import automatically in IntelliJ IDEA?如何在 IntelliJ IDEA 中自动禁用 Maven 自动导入?
【发布时间】:2014-11-23 19:46:30
【问题描述】:

我相信此设置可能会导致 IntelliJ IDEA 运行缓慢。我曾经得到一个弹出窗口,最后点击“自动执行”,现在它打开了,但我想再次关闭它。如何禁用 Maven '自动导入'?

【问题讨论】:

标签: maven intellij-idea intellij-13


【解决方案1】:

取消选中Project Settings | Maven | Importing | Import Maven projects automatically。

对于 IDEA 14+,它位于 Settings | Build, Execution, Deployment | Build Tools | Maven | Importing | Import Maven projects automatically 下。

对于 IDEA 2020+,打开 Settings | Build, Execution, Deployment | Build Tools 并检查 "Reload projects after changes in the build scripts" 和 "Any changes"

【讨论】:

【解决方案2】:

虽然上面的答案是正确的。我观察到上述选项在 IntelliJ 2020.2 版本上不可用。所以,你需要去 Settings -> Build Tool -> 检查 “在构建脚本更改后重新加载项目” -> 检查 “任何更改”

【讨论】:

    【解决方案3】:

    转到 Intellij 的设置并导航到 Build, Execution, Deployment -> Maven -> Importing -> 取消选中 Import Maven projects automatically。

    【讨论】:

      【解决方案4】:

      设置 -> 构建、执行、部署 -> 构建工具 -> Maven -> 导入 -> 自动导入 Maven 项目

      【讨论】:

        【解决方案5】:

        对我来说(Ubuntu 12 上的 IntelliJ IDEA 14.1.1)此设置位于 Settings > Build, Execution, Deployment > Build Tools > Maven > Importing > [X] Import Maven projects automatically。

        万一它再次移动,或者你想快速找到它,Maven 设置也可以通过双击 Shift 并输入 maven 的一般搜索找到,这就是我这次找到它的方式——我认为自从发布其他答案以来,IDEA 中的设置位置肯定已经移动。

        【讨论】:

        • 双击移位对我很有帮助。谢谢
        猜你喜欢
        • 2017-08-28
        • 1970-01-01
        • 1970-01-01
        • 2022-08-05
        • 2012-12-11
        • 2019-09-05
        • 1970-01-01
        • 2015-02-08
        • 1970-01-01
        相关资源
        最近更新 更多