When using intelliJ, is there a way to automatically run maven compile after code changes? running mvn compile is too tedious each time.
Asked
Active
Viewed 1,799 times
1
-
Please provide more information. When would you like to compile the code? While the application is running? – Lino Jul 20 '18 at 07:43
-
[Use file watchers](https://www.jetbrains.com/help/idea/using-file-watchers.html) – Adelin Jul 20 '18 at 07:44
-
1Possible duplicate of [Intellij IDEA Java classes not auto compiling on save](https://stackoverflow.com/questions/12744303/intellij-idea-java-classes-not-auto-compiling-on-save) – malware Jul 20 '18 at 07:57
2 Answers
4
- 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).

malware
- 393
- 1
- 3
- 16