# Ignoring pom repositories

**URL:** <https://discuss.gradle.org/t/ignoring-pom-repositories/5354>\
**Category:** Old Forum Archive\
**Created:** [March 9, 2012, 7:59pm UTC](https://discuss.gradle.org/t/ignoring-pom-repositories/5354 "2012-03-09T19:59:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_VanderPol](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@John\_VanderPol](https://discuss.gradle.org/u/John_VanderPol)\
**Post date:** [March 9, 2012, 7:59pm UTC](https://discuss.gradle.org/t/ignoring-pom-repositories/5354/1 "2012-03-09T19:59:00Z")

</div>

I am having a problem getting gradle to resolve a jar which has a pom that explicitly references a repository that is currently down. An example being [http://repo.jenkins-ci.org/releases/org/jenkins-ci/version-number/1.0/version-number-1.0.pom](http://repo.jenkins-ci.org/releases/org/jenkins-ci/version-number/1.0/version-number-1.0.pom), it references [maven.glassfish.org](http://maven.glassfish.org) which is currently down and even though the artifact is in [repo.jenkins-ci.org](http://repo.jenkins-ci.org) gradle does not resolve the jar. Is there a way to either ignore the repository listed in that pom or have gradle consider all of the configured repositories while resolving that jar? In maven this looks like it can be accomplished by adding a mirror to the local settings.xml file but I dont see the equivalent support in gradle.

---

<div class="post-metadata">

**Author:** ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)\
**Post date:** [March 9, 2012, 9:14pm UTC](https://discuss.gradle.org/t/ignoring-pom-repositories/5354/2 "2012-03-09T21:14:00Z")

</div>

Can you provide the error message and a stack trace? Are you referencing [maven.glassfish.org](http://maven.glassfish.org) directly in your build file?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [March 9, 2012, 10:22pm UTC](https://discuss.gradle.org/t/ignoring-pom-repositories/5354/3 "2012-03-09T22:22:00Z")

</div>

I used to believe that Gradle ignores any repositories declared in POMs (see GRADLE-611 ).

---

<div class="post-metadata">

**Author:** ![John\_VanderPol](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@John\_VanderPol](https://discuss.gradle.org/u/John_VanderPol)\
**Post date:** [March 12, 2012, 5:17pm UTC](https://discuss.gradle.org/t/ignoring-pom-repositories/5354/4 "2012-03-12T17:17:00Z")

</div>

My builds were just taking forever tying to contact [maven.glassfish.org](http://maven.glassfish.org), but I took another look at my project and I was using a plugin that was automatically adding the glassfish repository without my knowledge. Once I removed that repository the build started working fine.
