Re: maven-surefire-plugin jdkToolchain meets forkCount

2021-08-27 Thread Delany
Yes it looks that way. I changed the system jdk to 16 and now I can pick a jdk with the toolchains plugin and without any surefire config. Its basically https://issues.apache.org/jira/browse/MTOOLCHAINS-28 all over again but with surefire-plugin Want a ticket? Delany On Thu, 26 Aug 2021 at 17:50,

Re: maven-surefire-plugin jdkToolchain meets forkCount

2021-08-26 Thread Thomas Broyer
IIUC, with forkCount=0, you're disabling forking, so everything happens in the Maven process itself and won't use the configured toolchain. If you're running Maven with a JDK < 9 then you'd have that UnsupportedClassVersionError. For the first case, with forkCount being its default value (forkCoun

Re: maven-surefire-plugin jdkToolchain meets forkCount

2021-08-26 Thread Mantas Gridinas
>From the looks of it, your toolchains plugin might not get executed. Are you sure you've configured execution phase to "validate" in toolchains plugin? Last when I had to use toolchains plugin I don't remember needing to configure particular surefire properties. See java9 with toolchains.xml https

maven-surefire-plugin jdkToolchain meets forkCount

2021-08-26 Thread Delany
Hi. Im having trouble with the jdkToolchain feature of maven-surefire-plugin https://maven.apache.org/surefire/maven-surefire-plugin/examples/toolchains.html This is my working build tag maven-compiler-plugin 8