问题
When using intelliJ, is there a way to automatically run maven compile after code changes? running mvn compile is too tedious each time.
回答1:
- Access Settings (Preferences on macOS). Select Build, Execution, Deployment > Compiler.
- Enable Build project automatically. Press OK.
- 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