# How to proxy a nexus2 repo maven into nexus 3

**URL:** https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765
**Category:** Sonatype Nexus Repository
**Tags:** proxy
**Created:** [June 8, 2023, 1:18pm UTC](https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765 "2023-06-08T13:18:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michel13](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@michel13](https://community.sonatype.com/u/michel13)
#### Post date: [June 8, 2023, 1:18pm UTC](https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765/1 "2023-06-08T13:18:08Z")

</div>

Hi,  
I currently try to migrate a nexus2 into a nexus3.  
To limite the inconvenience for the users, I want to proxyfy all my nexus2 into thne New nexus3 (like maven central for example)  
When I did it I have :  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/5/556aa7657a3536d4bf5df269509cbbb5c9beb8c5.png)

And

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/b/b1dddc5c286e3c354c77e3ea1ad6a393905e8aad.png)

One more question, when it will be OK,  
How can I download an Nexus2 artifact forn Nexus3 with curl ?

thx  
Michel

---

<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: [June 8, 2023, 1:24pm UTC](https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765/2 "2023-06-08T13:24:33Z")

</div>

Proxies don’t preemptively copy content, they only store data that you’ve used.

---

<div class="post-metadata">

### Author: ![michel13](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@michel13](https://community.sonatype.com/u/michel13)
#### Post date: [June 9, 2023, 7:48am UTC](https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765/3 "2023-06-09T07:48:22Z")

</div>

Ok, thx

but,

into Nexus3 I configure the access at all public repo of Nexus2 like that :  
name : VersNexus2Public  
format : maven2  
Type : proxy  
URL : [https://nexus3.xxx:10443/repository/VersNexus2Public/](https://nexus3.xxx:10443/repository/VersNexus2Public/)  
Online : checked

```
Version policy : Release
Layouit policy : permissive
Content Disposirion : Inline

Remote Storage :
https://nexus2.YYY:10130/nexus/content/repositories/my-repo-public
Auto-block : checked

Strict Content Type Validation
checked

HTTP:
Authentification Type : Username
Username : admin
Password : xxxxxxxx

```

When I browse it, its status is : “Online - Ready to Connect”

After reading on internet, it’s because I don’t download anything. Ok.  
But how can I download something of Nexus2 from Nexus3 ?  
I need to download with cUrl, but I don’t find how to do it.

Thx

---

<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: [June 9, 2023, 7:06pm UTC](https://community.sonatype.com/t/how-to-proxy-a-nexus2-repo-maven-into-nexus-3/10765/4 "2023-06-09T19:06:51Z")

</div>

The Nexus GUI allows you to copy the base URL of the repository, i.e. [http://localhost:8081/repository/maven-central](http://localhost:8081/repository/maven-central) but you’d need to figure out the relative paths of content you have stored in Nexus 2
