javadockermavenjava-19

Docker Image for maven with OpenJDK 19 is missing


I am looking at https://openjdk.org/projects/jdk/19/ which seems to indicate that OpenJDK is now Generally Availible as of September 20th 2022. However, when I look at the current maven images (https://hub.docker.com/_/maven) , I find openJDK 17 (https://hub.docker.com/layers/library/maven/3.8.4-openjdk-17/images/sha256-d07c45c45755f0f90b779bad869467e602f1bfff4d0b5eb1ff73f2882bc38187) and openJDK 18 (https://hub.docker.com/layers/library/maven/3.8.7-openjdk-18/images/sha256-1936d70bb3415a0d7e822ed484cdb4974593b195091c145b52ba7775003dc3f0?context=explore) but I do not see openJdk-19. I searched 'openjdk' https://hub.docker.com/_/maven/tags?page=1&name=openjdk and looked at 'newest' but I cannot find a Java 19. Is there such a openjdk maven artifact perhaps under a different naming scheme? Is there something that I am missing?


Solution

  • It appears that this project has stopped building Linux images using OpenJDK, due to discontinuation of the OpenJDK builds those images were based on. It now only provides images using alternative JDK distributions such as Eclipse Temurin and Amazon Corretto. The Temurin images are a suitable replacement for most users.

    Also note that, although there are historical images built with Java 19 available, Java 19 has since been superseded by Java 20 and therefore there will not be new images based on Java 19 and the most recent Maven releases. It is generally preferable to use an LTS release of Java such as Java 17. If your project requires a Java version newer than the most recent LTS release, then it’s a good idea to use the most recent version, as interim releases such as Java 18 and 19 may not be supported once a newer version is available. The next upcoming Java release at the time I write this—version 21, due in September 2023—will be an LTS release.