In a Maven project for managing Java application, to enforce usage of a specific Java version, you will need to add
configuration option to the
To achieve this, simply add the appropriate
target options to the
maven-compiler-plugin, for example:
target to the project’s appropriate Java version.