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:
Could not resolve A:B:1.0
Could not get resource ‘’.
Could not GET ‘’.
peer not authenticated

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