How-to articles, tricks, and solutions about MAVEN-TOOLCHAINS-PLUGIN
How to set specific Java version to Maven?
To set a specific Java version for Maven, you can specify the maven.compiler.source and maven.compiler.target properties in the pom.xml file.