Making Gradle find a JAR in a flatDir repo when it is missing from a Maven repo

Sure, but that’s what you’re proposing for the jar, isn’t it? Why not just copy the pom as well? Copying an extra file when you already have to copy jar doesn’t really make any difference.

Is there a way to configure multiple local maven repositories? (other than the default one “mavenLocal”, related to local maven cache) If so, that local repo could be put under version control with the other project stuff. That would result in a cheaper process: a guy copies the Jar with the POM descriptor, commits them, and the entire team simply got it. *** So far I’ve seen an ivy example, but not a maven one. I mean something like

  repositories {



maven {





 // URL can refer to a local directory





 url "../local-repo"



}  }  

Yes this works fine. ‘mavenLocal’ has a special meaning in that it points at the actual cache used by Maven. Would recommend using a different local repository if Maven is not involved.

I still think this is a potentially unneccessary complication. It would be an effective workaround for the jmxtools case, but it would not help with the missing sources/javadoc artifacts case, unless you do a lot of manual work to set up a local Maven repo with new POMs. See also Daz DeBoer’s comment above (on January, 15 2012)…