Upgrading Your Sonatype Nexus Repository Java Version
This section covers upgrading the Java version that your Sonatype Nexus Repository instance is using. Before proceeding, make sure you understand which Sonatype Nexus Repository versions are compatible with available Java versions as outlined in the table below:
Supported Java Version | Sonatype Versions Supporting This Java Version |
---|---|
Java 8 |
|
Java 11 |
|
Java 17 |
|
Steps For All Java Version Upgrade Methods
Before upgrading your Java version using any of the following methods, take the following prerequisite steps:
Ensure no active Tasks are running in your Sonatype Nexus Repository instance.
Stop your Sonatype Nexus Repository instance.
Proceed to your relevant Java version upgrade method below and complete the required steps detailed in that section.
Follow your typical Sonatype Nexus Repository version upgrade process.
Note
Metrics exported from the JVM through the metrics endpoint and prometheus may differ between Java versions.
Upgrading Your Java Version When Using Docker
If you are using Docker to install Sonatype Nexus Repository, use the desired Java version tag (e.g., <nexus-repository-version>-java17) to upgrade your Java version (See available Nexus Repository tags in Docker Hub).
Upgrading Your Java Version Using the Nexus Repository Helm Chart
If you are using the Sonatype Nexus Repository HA/Resiliency Helm chart, update container.image.nexusTag in your values.yaml to use the desired Java version tag (e.g., <nexus-repository-version>-java17) (See available Nexus Repository tags in Docker Hub).
Upgrading Your Java Version Using the Distribution Archive
If you are installing and running Sonatype Nexus Repository using the Distribution Archive, download the Sonatype Nexus Repository archive with the appropriate Java version from our Downloads page.
Note that for MacOS and Windows, the Java SDK is bundled with the software distribution; no additional Java installation is required for these operating systems.
For Unix-based systems, ensure that the appropriate version of Java is installed on your Unix-based OS before using the corresponding Sonatype Nexus Repository distribution.