'My build fails everytime I make any small change in Intellij spring boot project

I need to do mvn clean install everytime to run the application. Otherwise, it shows build error, cannot find symbol errors. How can I fix this? I have tried removing intellij and installing again but doesn't seem to work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source