Upgrade Nexus Repository
Upgrading the Nexus Repository is necessary for new features, bug fixes, performance improvements, and other security patches. Regularly updating to the latest release is recommended.
Pre-Upgrade Checklist
Review the Release Notes
The release notes list compatibility or breaking changes. Changes to the architecture of Nexus Repository require users to review the new required configuration.
Download the Latest Binary
Download the latest installer archive for your platform from the Downloads page.
Extract the newest downloaded distribution archive using the standard approach. Archive distribution offers the familiar process of downloading and simply extracting the installation archive. There is no graphical or automated process and all commands are done inside a terminal console.
Content Replication
Pause content replication on the target instance while performing the upgrade to allow for a clean, predictable timeline for when replication is down. Re-start replication once you've upgraded both instances to the same version.
Compare the nexus.vmoptions File
Compare the
bin/nexus.vmoptions
file with your existing version. This file contains settings such as the temp file location and JVM memory setting.Jetty HTTPS Access
Check that the
etc/jetty/jetty-https.xml
SSL keystore location is available for the new installation and configured according to our recommendations.Review Custom Configuration
If you manually adjusted any other install files under
./etc
you need to perform a different comparison between the old files and the new files and apply your changes when applicable to the new version.
Perform the Upgrade
Backup the Nexus Repository
Take a backup of the existing data directory and blob stores. Because of the involved Upgrade steps, downgrading a Nexus Repository version is not supported and results in failure.
Review the Pre-Upgrade Checklist
Ideally, configuration is maintained in the External Database and the data directory and
Stop Nexus Repository
Stop your existing instance using your operating system service. Wait for it to stop completely.
Update your Service Scripts
Start the new installation using the scripts under
./bin
or adjust your operating system service to use these scripts.See Run as a Service
Restart Nexus Repository
Review the log files for issues and sign in to confirm Nexus Repository is working as expected.