linux-china/toolchains-maven-plugin

jdk vendor=ibm version=17 will download azul JDK

bmarwell opened this issue · 4 comments

bmarwell/jaxrs-test-showcase#30

[INFO] --- toolchains-maven-plugin:4.2.0:toolchain (default) @ jaxrstesting-root ---
[INFO] Required toolchain: jdk [ vendor='ibm' version='17' ]
[INFO] Begin to install JDK 17
[INFO] Download zing22.07.0.0-3-jdk17.0.4-linux_x64.tar.gz from https://cdn.azul.com/zing-zvm/ZVM22.07.0.0/zing22.07.0.0-3-jdk17.0.4-linux_x64.tar.gz
[INFO] Extract zing22.07.0.0-3-jdk17.0.4-linux_x64.tar.gz
[INFO] JDK installed: /home/runner/.m2/jdks/zing22.07.0.0-3-jdk17.0.4-linux_x64

Actually, 'vendor' is a misnomer in this plugin. It should be 'dist' (the actual parameter which was called), a synonym to 'distribution'.

vendor=semeru will download dist=semeru. That works.

Just a little correction here, it should be distribution=semeru for example. distro also works but was from version 2.0. You should also use https://api.foojay.io/disco/v3.0 which is the latest version. 😁

+1 for the API call:
bmarwell/jaxrs-test-showcase#50

Thanks!

:)