[BZ-1107982] log errors when trying to resolve maven artifacts
(cherry picked from commit 1be49863ce93c9c54c692a57ec17eaa019e7f60d)