Yes, and other plugins did this as well, eg: https://github.com/linux-china/toolchains-maven-plugin
However, as much as I love this idea, they lack one problem: They often don't work in corporate environments (or so I heard). In some envs it's enough to specify a proxy, some corps have their own JDKs hosted somewhere (eg Nexus/Artifactory, or just plain http) etc. Additionally, some corporate environments prevent execution of binaries not downloaded to specific folders and/or not installed by an admin. It would be great to have a solution which covers all cases. Especially if someone wants to contribute to a project using such tools from their corporate environment. On Mon, 14 Apr 2025, 01:15 Greg Chabala, <greg.chab...@gmail.com> wrote: > I think your idea has merit. Some other tools can provision JDKs (JBang, > SDKMAN) but more ideas and competition in the space could help. > > I think the automatic discovery by the toolchains plugin itself without an > explicit toolchains.xml file still has some rough edges as well. > > On Wed, Apr 9, 2025 at 11:03 AM Philip <philip.pi...@protonmail.com > .invalid> > wrote: > > > Hello people, > > > > I have been trying out the maven toolchains plugin and wanted to see if > it > > was possible to automatically download JDKs fitting the configured > > properties in my pom.xml. > > Gradle's foojay-resolver plugin already does this using the Foojay Disco > > API (https://github.com/gradle/foojay-toolchains). > > > > What do you think about this idea? > > > > Philip >