I won't hijack the voting thread, but I'd like to share some info about a feature that should have been used here:
# A mapping for toolchain to ensure it exists # Since plugin version 3.2.0 invoker.toolchain.<type>.<provides> = value invoker.toolchain.jdk.version = 11
This will check if the toolchain is available, otherwise it'll skip the test.
Jenkins at ASF has toolchains in place, so there's no need to have explicit paths in your test.
In general, the build works but i have a problem with this statement in the
String jdk11Windows = 'f:\\jenkins\\tools\\java\\latest11'
IMO the value should be configured via a system property. It should not be
hard coded like it is written above.
And, if the path does not exist then this test should not be executed or
the test result should be ignored otherwise.
Also the README.md should express this exception and configuration too.
[ERROR] Failed to execute goal
on project MPMD-304-toolchain-support: Misconfigured toolchains.
Non-existing JDK home configuration at e:\Program Files\Java\jdk-11 ->
On Sat, Oct 24, 2020 at 7:46 PM Andreas Dangel wrote: