# Maven Nexus V3 remote repository integration with Artifactory

**URL:** <https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149>\
**Category:** Sonatype Nexus Repository\
**Created:** [July 9, 2019, 2:37pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149 "2019-07-09T14:37:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuntamadhu08061987](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kuntamadhu08061987](https://community.sonatype.com/u/kuntamadhu08061987)\
**Post date:** [July 9, 2019, 2:37pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/1 "2019-07-09T14:37:12Z")

</div>

I am setting up Nexus3 repository as a remote repository in Artifactory. But when I update the Nexus3 repo URL([https://domainname/repository/reponame/](https://domainname/repository/reponame/)) & necessary credentials for authentication in the admin section, during testing i am getting,

**Connection failed: Error 404.**

I have tried providing the rest URL([http://domainname/service/rest/repository/browse/reponame](http://domainname/service/rest/repository/browse/reponame)). In this case, connection to the nexus server establishes successfully & able to see the directory structure for the remote repo in the Artifacts section , but could not find the artifacts inside & seeing below output/error,

**{ “errors” : [{ “status” : 404, “message” : “Couldn’t find item: XXXX:XXXXXXX” }]**

I have tested the same with nexusV2(domainname/nexus/content/repositories/reponame), I was able to successfully authenticate to the nexusV2 server & was able to pull artifacts from Artifactory, i have issue only when i test with NexusV3 (3.16.2-01, 3.3.x)

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [July 9, 2019, 2:55pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/2 "2019-07-09T14:55:21Z")

</div>

It sounds like Artifactory has some specific handling for the HTML directory listing of Nexus Repo 2.x. The way Nexus Repo 3.x works is different, so that won’t work.

But the fact that you can’t browse the remote directory listing does not mean the proxy isn’t working. Use the regular repository URL as the remote ([https://domainname/repository/reponame/](https://domainname/repository/reponame/)) and try running a build that requests artifacts from the remote repo.

---

<div class="post-metadata">

**Author:** ![kuntamadhu08061987](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kuntamadhu08061987](https://community.sonatype.com/u/kuntamadhu08061987)\
**Post date:** [July 11, 2019, 4:29pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/3 "2019-07-11T16:29:31Z")

</div>

Hi, seems like issue is resolved after saving the settings with [https://domainname/repository/reponame/](https://domainname/repository/reponame/) URL , even though testing the URL before saving it gave me **Connection failed: Error 404.**  
After running maven build, Artifactory was able to fetch the artifacts from Nexus Remote Repo

---

<div class="post-metadata">

**Author:** ![bert.meedendorp](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@bert.meedendorp](https://community.sonatype.com/u/bert.meedendorp)\
**Post date:** [May 12, 2020, 10:35am UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/4 "2020-05-12T10:35:10Z")

</div>

Have you found any solution for this problem.  
We have problems with teh new osgeo remote repository [Repository - Nexus Repository Manager](https://repo.osgeo.org/repository/release/)  
This is also a nexus 3.x repo.  
The test in Artifactory gives a 404.  
The weburl of this remote repo is ok for Artifactory [Index of /](https://repo.osgeo.org/service/rest/repository/browse/release/)  
But in Artifactory you get only the directory structure and not the artifacts itself.

The advice from Jfrog support was to have a virtual repo with both the url definitions.  
But that is no solution for getting the right artifacts. You stil can not download for example a version directory. You have to specify the artifacts seperatly

---

<div class="post-metadata">

**Author:** ![m.hermes82](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m.hermes82](https://community.sonatype.com/u/m.hermes82)\
**Post date:** [June 16, 2020, 9:52am UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/5 "2020-06-16T09:52:13Z")

</div>

Same issue here. Artifactory fails to fetch the artifacts.

Regards Martin

---

<div class="post-metadata">

**Author:** ![rmshnair](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rmshnair](https://community.sonatype.com/u/rmshnair)\
**Post date:** [August 13, 2020, 11:10pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/6 "2020-08-13T23:10:13Z")

</div>

Same issue here. i am trying to create a Nexus NPM repo proxying remote repo at Artifactory. same works for Maven format. but 404 error for NPM.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [August 14, 2020, 2:12pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/7 "2020-08-14T14:12:01Z")

</div>

> [@rmshnair](#):
>
> Same issue here. i am trying to create a Nexus NPM repo proxying remote repo at Artifactory. same works for Maven format. but 404 error for NPM.

It sounds like your issue is different, the others are having difficult with Artifactory fetching artifacts from Nexus, while you seem to suggest you’re having a problem with the reverse.

---

<div class="post-metadata">

**Author:** ![kozlovskiy.in](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kozlovskiy.in](https://community.sonatype.com/u/kozlovskiy.in)\
**Post date:** [April 15, 2021, 9:01am UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/8 "2021-04-15T09:01:18Z")

</div>

So, we have a workaround - use the regular repository URL and ignore error 404, but does anyone know is Sonatype going to solve this problem?

---

<div class="post-metadata">

**Author:** ![khoga.eslam](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/khoga.eslam/32/2007_2.png) [@khoga.eslam](https://community.sonatype.com/u/khoga.eslam)\
**Post date:** [September 15, 2021, 11:23am UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/9 "2021-09-15T11:23:40Z")

</div>

That’s exactly what resolved my issue  
add the URL without testing or even browsing the repo  
then building the Gradle project!  
Thant you!

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [September 15, 2021, 2:07pm UTC](https://community.sonatype.com/t/maven-nexus-v3-remote-repository-integration-with-artifactory/2149/10 "2021-09-15T14:07:52Z")

</div>

There isn’t a problem with Nexus Repository, this is an issue with Artifactory’s testing mechanism.
