You can’t configure OpenJDK 11, you can configure maven to use java11 , whether it will use Oracle Java or OpenJDK depends on which of the two is installed in your system and configured in your ide (or path, if you are using CLI). maven.apache.org/plugins/maven-compiler-plugin/examples/… You can’t set it in the pom.