Run the Following on the Terminal:
mvn help:effective-pom | grep maven-compiler-plugin -A 10
and you will see something like:
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
Which means that your version will be(e.g.) 3.11.0 for example