Faster Maven Builds

Last week I received a project laptop update. From 2 CPU cores it went up to 4 cores. Also the rest of the equipment suggests that the build time should be reduced significantly.

But build time did not change at all on the new laptop:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:41 min
[INFO] Finished at: 2018-10-12T08:13:04+02:00
[INFO] Final Memory: 225M/512M

After looking at the Maven settings in IntelliJ, it was clear what to adjust:

Maven did not use multi-threaded building ...

The change resulted in 50% less build time.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:21 min (Wall Clock)
[INFO] Finished at: 2018-10-12T08:19:52+02:00
[INFO] Final Memory: 205M/507M