Is there a way to automatically compile using maven after code changes when using IntelliJ?

人走茶凉 提交于 2021-02-11 13:38:46

问题


When using intelliJ, is there a way to automatically run maven compile after code changes? running mvn compile is too tedious each time.


回答1:


  1. Access Settings (Preferences on macOS). Select Build, Execution, Deployment > Compiler.
  2. Enable Build project automatically. Press OK.
  3. Press Ctrl+Shift+A (Cmd+Shift+A on macOS) and search for Registry. Open it to find and enable compiler.automake.allow.when.app.running (IntelliJ IDEA 15 and newer).

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




回答2:


Have a look at JRebel Plugin. If you are working with web apps its great.



来源:https://stackoverflow.com/questions/51437504/is-there-a-way-to-automatically-compile-using-maven-after-code-changes-when-usin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!