Fail build when errors occur while building Maven repository