Skip to content

Conversation

@Syquel
Copy link

@Syquel Syquel commented May 12, 2021

This is a Work-In-Progress to gather some feedback.
Integration tests will be added.

Currently Maven toolchains must be configured manually or in other ways.
Especially in ad-hoc build environments like GitHub Actions this requires developers to write Shell scripts or other logic in the pipeline to create the toolchain.xml .

By providing this goal developers would be enabled to execute tests with multiple JDKs without having to run the build multiple times (or as a matrix build) in such ad-hoc build environments.

@rfscholte
Copy link
Contributor

I think this is a very ambitious plan (probably too ambitious).
Keep in mind that order should be preserved, just like comments.

@mthmulders
Copy link

If it's specifically for GitHub actions, please know that since Maven 3.6.2, Maven will replace environment variables in toolchains.xml. This allows you to setup a toolchains.xml using the environment variables that GitHub Actions give you. An example is this workflow.

@linux-china
Copy link

linux-china commented Oct 19, 2021

How about download JDK from https://adoptium.net/ or https://api.foojay.io/swagger-ui automatically? It's will be very useful for local development. Now I built a CLI to manage JDK versions in toolchains.xml https://github.com/linux-china/maven-toolchains-cli

@gnodet
Copy link
Contributor

gnodet commented Feb 28, 2024

I think this is superseded by #14

@gnodet gnodet closed this Feb 28, 2024
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

Successfully merging this pull request may close these issues.

5 participants