Upgrade Nexus Repository Java Version
This section covers upgrading the Java version that your Nexus Repository instance is using. Before proceeding, make sure you understand which 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 | Supported for all currently released versions Required for versions up to and including 3.66.0 |
Java 11 | 3.67.0 to 3.70.x |
Java 17 | 3.69.0 and above Not supported for OrientDB environments |
The metrics exported from the JVM through the metrics API endpoint and Prometheus may differ between Java versions.
Upgrade with Docker
Use the Java version Docker tag to upgrade your Java version.
Upgrade with the Helm Chart
When using the Helm chart, set the Java version by update the nexusTag
property in the values.xml
of the chart. Use the available Docker images to set the appropriate tag.
container: image: repository: sonatype/nexus3 nexusTag: 3.78.0-java17
See the Helm Chart
Upgrading Your Java Version Using the Distribution Archive
Download the archive with the appropriate Java version from Downloads.
MacOS and Windows: the Java SDK is bundled with the software distribution; no additional Java installation is required.
Unix-based systems: install the appropriate version of Java on your Unix-based OS before using the Nexus Repository distribution.