Maven may show a message like:
[INFO] Changes detected – recompiling the module!
Because you have an empty java file (or all commented out) in the project that never compiles into a class file.
You can identify the reason why maven rebuilds by running maven with -X. Look near the above message.