Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading JDK EA builds #13

Open
cushon opened this issue Aug 7, 2024 · 0 comments
Open

Downloading JDK EA builds #13

cushon opened this issue Aug 7, 2024 · 0 comments

Comments

@cushon
Copy link

cushon commented Aug 7, 2024

Is there a way to download early access JDK builds with the plugin?

E.g. looking at https://api.foojay.io/disco/v3.0/distributions there are several entries for early access builds of JDK 24 with versions like 24-ea+9, but there doesn't appear to be a way to download them.

Demo:

      <plugin>
        <groupId>org.mvnsearch</groupId>
        <artifactId>toolchains-maven-plugin</artifactId>
        <version>4.5.0</version>
        <executions>
            <execution>
              <id>download-24</id>
              <goals>
                <goal>toolchain</goal>
              </goals>
              <configuration>
                <toolchains>
                  <jdk>
                    <version>24</version>
                    <vendor>zulu</vendor>
                  </jdk>
                </toolchains>
              </configuration>
            </execution>
          </executions>
        </plugin>
$ mvn package
...
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
    at jdk.internal.util.Preconditions.outOfBounds (Preconditions.java:100)
    at jdk.internal.util.Preconditions.outOfBoundsCheckIndex (Preconditions.java:106)
    at jdk.internal.util.Preconditions.checkIndex (Preconditions.java:302)
    at java.util.Objects.checkIndex (Objects.java:385)
    at java.util.ArrayList.get (ArrayList.java:427)
    at com.google.gson.JsonArray.get (JsonArray.java:203)
    at org.apache.maven.plugins.toolchain.FoojayService.parseFileNameAndDownloadUrl (FoojayService.java:145)

This CLI also does not download EA versions:

$ ./mt.sh add 24 --vendor=zulu
JDK not found: 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant