【问题标题】:Is there a way to automatically compile using maven after code changes when using IntelliJ?使用 IntelliJ 时,有没有办法在代码更改后使用 maven 自动编译?
【发布时间】:2018-07-20 16:03:04
【问题描述】:

使用intelliJ时,有没有办法在代码更改后自动运行maven compile?每次运行 mvn compile 太繁琐了。

【问题讨论】:

标签: java intellij-idea


【解决方案1】:
  1. 访问设置(macOS 上的首选项)。选择构建、执行、部署 > 编译器。
  2. 自动启用构建项目。按确定。
  3. 按 Ctrl+Shift+A(在 macOS 上为 Cmd+Shift+A)并搜索注册表。打开它,找到并启用 compiler.automake.allow.when.app.running(IntelliJ IDEA 15 及更高版本)。

来源: https://zeroturnaround.com/software/jrebel/quickstart/intellij/enable-automatic-compilation-in-intellij-idea/

【讨论】:

    【解决方案2】:

    看看 JRebel 插件。如果您正在使用网络应用程序,那就太好了。

    【讨论】:

    • jrebel 是关于部署,而不是关于编译
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-17
    • 1970-01-01
    • 2012-05-20
    相关资源
    最近更新 更多