'Resource missing.' info logging for POM files when using Ivy

Why does Gradle 1.5 try to access Maven metadata when having Ivy repositories configured only resulting in unnecessary network access?

Cached resource is up-to-date (lastModified: Fri Mar 01 12:11:59 EST 2013). [HTTP: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.7.1.3/ivy-6.7.1.3.xml]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/maven-metadata.xml]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.7.1.3/lfw-messageeditor-6.7.1.3.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.7.1.3-SNAPSHOT/lfw-messageeditor-6.7.1.3-SNAPSHOT.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.6.2.2/lfw-messageeditor-6.6.2.2.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.5.1.15/lfw-messageeditor-6.5.1.15.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.4.1.11/lfw-messageeditor-6.4.1.11.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.4.1.9/lfw-messageeditor-6.4.1.9.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.4.1.8/lfw-messageeditor-6.4.1.8.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.4.1.7/lfw-messageeditor-6.4.1.7.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.4.1.2/lfw-messageeditor-6.4.1.2.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.1.2.1/lfw-messageeditor-6.1.2.1.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.1.1.14/lfw-messageeditor-6.1.1.14.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.1.1.5/lfw-messageeditor-6.1.1.5.pom]
Resource missing. [HTTP GET: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/maven-metadata.xml]
Cached resource is up-to-date (lastModified: Fri Mar 01 12:11:59 EST 2013). [HTTP: http://bas.eur.ad.sag:8081/artifactory/build-snapshot/com/softwareag/g11n/lfw/lfw-messageeditor/6.7.1.3/lfw-messageeditor-6.7.1.3.jar]

The answer to your question of “why” is that Gradle definitely shouldn’t be doing this, and I can’t see in the code any way that this would happen. We have tests that verify the HTTP interactions for an ivy repository, and they don’t allow any maven-related requests.

We’d need to have a bit more context to understand why Gradle is making these extra HTTP requests in this case. Context would include - What repositories are declared - What does the dependency declaration look like for ‘lfw-messageeditor’ - What action do you take to see this output - Does this happen in Gradle 1.4 with ‘–refresh-dependencies’

Also debug logs would be helpful. You can email a link directly to me if they contain sensitive information. (darrell.deboer@gradleware.com)

OK, good. If this should not happen then let me narrow down this a little. It shouldn’t be difficult to create a repro case.

Opened ticket with attached repro case … GRADLE-2717

I can only see ‘maven’ repositories declared in the attached sample.

Looks like this was caused by an unexpected ‘maven’ repository in the set of repositories. See the resolution to GRADLE-2717.