Apache/ Maven/ Plugins/ Apache Maven Compiler Plugin/ Compiling Sources Using A Different JDK | Last Published: 2023-12-21 Version: 3.12.1 Using Maven Toolchains The preferable way to use a different JDK is to use the toolchains mechanism. During the build of a project, Maven, without toolchains, will use the JDK to perform various steps, like compiling the Java sources, generate the Javadoc, run