Can't resolve dependency(scope=provided) from local maven repository

(Guy Brand) #1


it looks like gradle doesn’t resolve dependencies which are stored inside the local maven repository and have the scope set to provided. We have the following setup:

pom of the dependency inside the local maven repository:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""

repositories in gradle

repositories {
      maven {
        credentials {
            username DOWNLOAD_REPO_USERNAME
            password DOWNLOAD_REPO_PASSWORD

It can’t resolve the jasper and coyote libraries. Do we make something wrong or is it a problem with gradle and local maven repositories?

(Luke Daley) #2

That’s exactly the contract of ‘provided’; the client provides the dependency. That is, they do not get resolved transitively.

(Guy Brand) #3

Thanks for your quick answer. I didn’t knew that they didn’t get resolved transitively.

(Luke Daley) #4

No probs.