The feature is using the Disco API. I can easily imagine providing a
different REST endpoint, but it would have to have the same API.
As for OS / architecture, the Disco api is used to discover a JDK package
corresponding to the current OS/arch.

Le jeu. 24 juil. 2025 à 11:17, Sergey Chernov <serega.mo...@gmail.com> a
écrit :

> Nice feature!
>
> I see it's possible to specify vendor, version or direct distribution URL.
> Is it possible to use an internal corporate registry (like Nexus or
> Artifactory) with JDK distributions supporting multiple platforms and CPU
> arch?
> How to configure this?
>
> On Wed, Jul 23, 2025 at 8:46 PM Guillaume Nodet <gno...@apache.org> wrote:
>
> > Hi Maven team,
> >
> > I'd like to request a review for a new Maven Wrapper enhancement that
> adds
> > automatic JDK download capabilities.
> >
> > PR Details:  https://github.com/apache/maven-wrapper/pull/337
> >
> > This enhancement integrates the Foojay Disco API to automatically
> download
> > and install JDKs when they're not available locally. This is an opt-in
> > feature - existing wrapper behavior remains unchanged unless users
> > explicitly configure JDK properties.
> >
> > Key Features:
> >
> >    - Opt-in only: No behavior change for existing projects
> >    - Automatic JDK download using Foojay Disco API
> >    - Support for major versions (e.g., jdk=17) and specific versions
> >    - Cross-platform compatibility (Linux, macOS, Windows)
> >
> > Example Usage:
> >
> > # In .mvn/wrapper/maven-wrapper.properties
> > maven=3.9.6
> > jdk=17
> > jdk_distro=temurin
> >
> >
> > The implementation would significantly improve the Maven Wrapper user
> > experience by eliminating manual JDK setup steps for teams that choose to
> > use it.
> >
> > Looking forward to your feedback!
> >
> > Best regards,
> > Guillaume Nodet
> >
>


-- 
------------------------
Guillaume Nodet

Reply via email to