5

I ran the migration utility to upgrade our Nexus 2 (2.14) to Nexus 3.40-02.

The Nexus 3 migration tool brought all the content from our 2.14 instance but subtly changed the URLs to all our Maven Repos.

For instance

https://nexus.foo.net/content/repositories/releases

became

https://nexus.foo.net/repository/releases

If I go in the Nexus 3 UI with the Admin account, browse to repostiories/settings I can see the URL but not change it.

This seems really dangerous since the Nexus URLs are encoded in poms by hundreds or more end-users consuming the jars. Why would the migration tool change the URL like this? Also I can find nothing in the Documentation about why the URL field is visible under "Settings" but cannot be changed to fix it.

Does anyone have any ideas about what went wrong?

Thanks.

JvmSd121
  • 351
  • 3
  • 17

1 Answers1

4

The URI pattern will change after the upgrade. However you can activate a switch to enable the old URI pattern.

"By default, Nexus Repository Manager 2 uses a different URL pattern to expose repositories and repository groups than Nexus Repository Manager 3. While automated tools and CI can be reconfigured to utilize the new patterns, it is possible to change a configuration on the Nexus Repository Manager end to allow your upgrade to use the old pattern as well. This can be done in $data-dir/nexus3/etc/nexus.properties by adding:"

org.sonatype.nexus.repository.httpbridge.internal.HttpBridgeModule.legacy=true

https://help.sonatype.com/display/NXRM3/Upgrade+Procedures#UpgradeProcedures-ConfiguringLegacyURLPaths

Mike
  • 173
  • 10