I build a maven project on OpenShift Dedicated with S2I, but the build fails with a "Generic Build failure - check logs for details."

However, the build log shows no error. So there is no clue what can cause this.

Apparently, it might be because the maven build went out of memory (although the log would show that normally) or it was killed because a timeout passed and the build took too long. Either way, OpenShift should mention any of such things happening - for example at the end of the log file.
To reproduce, throw this into SI2: https://github.com/kiegroup/optashift-employee-rostering/tree/c1c0081287917ac8925c170d7325bafdfb3a8a16
Relates to https://stackoverflow.com/questions/49937464/openshift-java-maven-build-generic-build-failure-but-log-shows-no-error