# Accessing dependency POM contents (including transitive dependencies)

**URL:** <https://discuss.gradle.org/t/accessing-dependency-pom-contents-including-transitive-dependencies/11415>\
**Category:** Help/Discuss\
**Created:** [August 31, 2015, 10:42pm UTC](https://discuss.gradle.org/t/accessing-dependency-pom-contents-including-transitive-dependencies/11415 "2015-08-31T22:42:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Roth](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Steve\_Roth](https://discuss.gradle.org/u/Steve_Roth)\
**Post date:** [August 31, 2015, 10:42pm UTC](https://discuss.gradle.org/t/accessing-dependency-pom-contents-including-transitive-dependencies/11415/1 "2015-08-31T22:42:09Z")

</div>

We would like to transitively download artifacts from an external maven repository to the filesystem, but still maintain the full maven coordinate information (GAV, classifier, extension), and POM file for all downloads (transitively).

The reason for doing so is because at some future point in time we will want to upload artifacts to a _DIFFERENT_ maven repository, and so it is important to maintain the full GAV/CE coordinate and POM information so it is not lossy.

Using the configurations.x.resolvedConfiguration.resolvedArtifacts, I was able to find all the GAV/CE coordinate information, including for transitively resolved dependencies (great!). However, I did not see a way to ask gradle for the POM files/contents it had downloaded.

How would you recommend accessing this information from the gradle runtime?

As a fallback, I think that using the coordinates, I could build up a POM URI using the proper format, and re-request it from the maven repo. But I’d much prefer to ask Gradle for the information it has already downloaded.

Any suggestions?

Thanks  
-Steve

EDIT: fixed title

---

<div class="post-metadata">

**Author:** ![mark\_vieira](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_vieira/32/5396_2.png) [@mark\_vieira](https://discuss.gradle.org/u/mark_vieira)\
**Post date:** [September 1, 2015, 4:31am UTC](https://discuss.gradle.org/t/accessing-dependency-pom-contents-including-transitive-dependencies/11415/2 "2015-09-01T04:31:51Z")

</div>

You can grab the POM via an [artifact resolution query](https://docs.gradle.org/2.3/release-notes#access-ivy-and-maven-metadata-artifacts-via-the-artifact-query-api).
