Failing the build if M2_HOME env var is not defined.