How to remove a local jar form a library dependence by maven

My project dependence "bmob library module " by remote maven library

bmob library module have a libs/example.jar
how to exclude this jar

my code is this ,but not effective

compile (‘’,{
exclude module: ‘okhttp’

Is there a method for inspecting/excluding modules from .jar dependencies not available on Maven? gradle dependencies seems to not report dependencies added with compile files(‘libs/example.jar’)