Determining and Planning Your Upgrade Path
Upgrading from Nexus Repository 2 to 3 requires completely transforming the repository metadata and artifact storage model.
You need to use one of the following upgrade methods:
Method | Requirements and Limitations |
---|---|
Built-in Upgrade Wizard(Preferred) |
|
Exporting / Importing Content(Preferred) |
|
Proxy Repositories |
|
Hybrid Model |
|
Upgrading while in a Highly Available (HA) Nexus Repository 3 Architecture is Not Supported
Using the upgrade wizard when Nexus Repository 3 instance is configured as a multi-node highly available resilient deployment is not supported. We require first upgrading to a Nexus Repository 3 instance using a single node deployment before upgrading to the resilient architecture.
The upgrade wizard was not designed to support highly available deployments.
Storage Planning for the Nexus Repository 3 Upgrade
Whether using the Upgrade Wizard or Import method, we always recommend using hard links when possible. Using hard linking saves time and storage space.
See hard linking requirements when using the Upgrade Wizard or hard linking requirements when using the import task.
When Planning to Use Cloud Object Storage
Moving to cloud object stores (e.g., S3 blob stores) takes two to three times longer than moving to other storage options.
We recommend importing to a file-based blob store on a low-latency file system and following the instructions in Moving a Blob Store to move the content to the cloud object store.
Nexus Repository 2 APIs and Plugins
Custom plugins and scripts written using the Nexus Repository 2 APIs are not compatible and do not work for Nexus Repository 3. Scripts and plugins will need to be rewritten using the Nexus Repository 3 API.
Nexus Repository 3 will support legacy Nexus Repository content URLs for fetching components; however, you should transition builds to Nexus Repository 3 URLs when possible.
When Using the IQ Server
The Upgrade Wizard clones the IQ Server configuration and expects that Nexus Repository 3 uses the same server. The data inside the IQ Server for Nexus Repository 2 is cloned to work with the repositories upgraded to Nexus Repository 3.
When Using the Repository Firewall Solution
The Upgrade Wizard will move Repository Firewall waivers and approved components to your new Nexus Repository 3 instance.
While you cannot manually move Firewall waivers and approval, you can pre-fetch approved (waived) components before enabling Firewall quarantine on the new repository.
Export the Firewall report from the source repository using the IQ Server REST API for Repository Results.
Use this report to request components from the new proxy repository.
Enable Firewall quarantine on the new repository once all of the allowed components have been proxied.
RPMs in Maven Repositories
Nexus Repository 2 supported storing RPMs in Maven repositories as a stopgap for the lack of native RPM support. Nexus Repository 3 natively supports RPM repositories; however, moving these artifacts to a native RPM repository is not supported using the upgrade wizard. We highly suggest using the import task to move these into Yum-hosted repositories in Nexus Repository 3.
Disable the Yum: Configuration
capability on Maven repositories in Nexus Repository 2 or the hosted repositories with this configuration will not be imported using the upgrade wizard.