Affected version
3.4.2
Bug description
My build is using toolchains, and the build container sets some base args into env.JAVA_TOOL_OPTIONS. This causes the javac process to output some additional info into stderr, causing the detection to fail:
[INFO] --- jar:3.4.2:jar (default-jar) @ CompanyResearchHubData ---
[WARNING] Unrecognized output from [/usr/java/temurinjdk21.0.7+6/bin/javac, -version]: Picked up JAVA_TOOL_OPTIONS: -XX:ActiveProcessorCount=16 -XX:ErrorFile=./hs_err/hs_err_pid%p.log
javac 21.0.7