# How do I set up a proxy for this Maven2 repo?

**URL:** <https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005>\
**Category:** Sonatype Nexus Repository\
**Tags:** maven2-proxy\
**Created:** [January 27, 2026, 9:49pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005 "2026-01-27T21:49:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Fouts](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@Chris\_Fouts](https://community.sonatype.com/u/Chris_Fouts)\
**Post date:** [January 27, 2026, 9:49pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/1 "2026-01-27T21:49:59Z")

</div>

Nexus v3.88.0

I created the following proxy in our hosted Nexus repository, shown in screen shot, and removed ALL mentions of `https://repo.maven.apache.org/maven2/` in our `build.gradle` files and use the proxy setting instead. However, I still see this.

`Download https://repo.maven.apache.org/maven2/io/springfox/springfox-swagger2/2.8.0/springfox-swagger2-2.8.0.pom`

`Download https://repo.maven.apache.org/maven2/org/springframework/spring-web/4.3.7.RELEASE/spring-web-4.3.7.RELEASE.pom`

I see the other artifacts being downloaded from within our hosted Nexus repo, but not for the artifacts in the above Apache repo. Why is that?

 ![Screenshot 2026-01-27 at 4.42.41 PM](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/7/72f53c09c473df5bdf2b336c8616f78b4a8d8ea6.png)

---

<div class="post-metadata">

**Author:** ![mprescott](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mprescott/32/178_2.png) [@mprescott](https://community.sonatype.com/u/mprescott)\
**Post date:** [January 28, 2026, 2:29pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/2 "2026-01-28T14:29:27Z")

</div>

You didn’t say where you’re seeing these ‘Download’ messages, but I assume on your gradle CLI output. This is a sign that gradle is somehow misconfigured and not exclusively pointing to Nexus Repository.

---

<div class="post-metadata">

**Author:** ![jzora](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jzora/32/4197_2.png) [@jzora](https://community.sonatype.com/u/jzora)\
**Post date:** [January 28, 2026, 3:50pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/3 "2026-01-28T15:50:25Z")

</div>

Hi, Chris,

Two things to consider.

1. Formatting in your `build.gradle` file should look like

```auto
repositories {
    maven {
        url "https://nexus.example/repository/repository-name/"
    }
}

```

or

```auto
repositories {
    maven {
        credentials {
            username "$user"
            password "$password"
        }
        url "https://nexus.example/repository/repository-name/"
    }
}

```

If your `build.gradle` file doesn’t look like this, correct that.

But I think that, if your build file was misconfigured, you’d be seeing errors as gradle reached out to an URL that didn’t exist. Instead, you’re still fetching a component so…

1. Multi-module projects have multiple `build.gradle` files. I know this is basic, but can you confirm that you’ve configured the correct build file(s)?

Either way, I assume you’re a customer, **so you have access to our Support team.** If issues persist, open a ticket with them.

---

<div class="post-metadata">

**Author:** ![Chris\_Fouts](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@Chris\_Fouts](https://community.sonatype.com/u/Chris_Fouts)\
**Post date:** [January 28, 2026, 4:52pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/4 "2026-01-28T16:52:16Z")

</div>

I see them in my local terminal, for example, when I do a

`$ ./gradlew clean build`

I also see them in our Atlassian Bitbucket pipelines that runs a similar Gradle command.

---

<div class="post-metadata">

**Author:** ![Chris\_Fouts](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@Chris\_Fouts](https://community.sonatype.com/u/Chris_Fouts)\
**Post date:** [January 28, 2026, 5:06pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/5 "2026-01-28T17:06:52Z")

</div>

Sorry, I should’ve added that I created a Maven2 Group repository

`https://<my-company-domain>/repository/my-maven-group/`

and added my `maven-apache` proxy repository to the group, shown in screen shot.

 ![Screenshot 2026-01-28 at 11.56.54 AM](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/560a09d4bea04d5ea4187c1a25fcdcb54af92243.png)

In ALL of my `build.gradle` files, I then have

```auto
repositories {
    maven {
        credentials {
            username "$user"
            password "$password"
        }
        url "https://<my-company-domain>/repository/my-maven-group/"
    }
}

```

I also have this in my `settings.gradle` file

```auto
pluginManagement
  repositories {
      maven {
          credentials {
              username "$user"
              password "$password"
          }
          url "https://<my-company-domain>/repository/my-maven-group/"
      }
  }
}

```

---

<div class="post-metadata">

**Author:** ![jzora](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jzora/32/4197_2.png) [@jzora](https://community.sonatype.com/u/jzora)\
**Post date:** [January 29, 2026, 8:55pm UTC](https://community.sonatype.com/t/how-do-i-set-up-a-proxy-for-this-maven2-repo/16005/6 "2026-01-29T20:55:14Z")

</div>

Hmm. In that case, I can’t troubleshoot more without knowing the specifics of your configuration. If you’re a customer, open a ticket at [support.sonatype.com](http://support.sonatype.com) and they can dive deeper into this with you.
