-
Notifications
You must be signed in to change notification settings - Fork 423
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
Add the JDK to the default toolchains.xml #303
Comments
The toolchains file can be generated using this Java code (requires Java 15 or higher):
Save it as |
This would not be required if the toolchains plugin checked if the toolchain request can be satisfied by the JDK Maven is running on. |
Please prioritize this issue. Toolchain support is very important, all of the core plug-ins support it and many advanced Maven projects use toolchains. |
It would be useful to have the JDK included in the default toolchains file.
Currently I have something like this in my
pom.xml
:When running
mvn clean package
inmaven:3-eclipse-temurin-17-alpine
, I get this error:Adding the following section to
/usr/share/maven/conf/toolchains.xml
resolved the issue:Values are taken from
mvn --version
, the<vendor>
element is not required,<version>
could also just include the major version (17
).The text was updated successfully, but these errors were encountered: