Gradle build stuck to resovling the dependecies

I upload a jar file to my local repo(powered by sonatype nexus),but I didn’t have the pom.xml of the jar file.
I write the dependecy in the build.gradle.
now when I use “gradle clean build” ,the gradle always want to find the pom of that jar, can gradle just omit the pom?

You should let Nexus create a default pom.xml for the artifact when you upload it. Or as a workaround use the extension selector in the dependency to specify you only want the JAR file. I have not tested this but I suspect it would work:

dependencies {
   compile ''