Gradle looking for POM file only and not Jars

I put some jars in jfrog Artifactory and established dependency in build.gradle file. When I try to run the gradle build it seems to complete successfully on some machines and not on others, where it does not I see the following errors,

Could not resolve A:B:1.0.
Required by:
:XYZService:XXXXXXX
Could not resolve A:B:1.0
Could not get resource ‘https://binrepo.abc.com/artifactory/A-B.1.0.pom.’.
Could not GET ‘https://binrepo.abc.com/artifactory/A-B.1.0.pom’.
peer not authenticated

Why is it only looking for POM file on few machines and not the jars?