Sonar.java.source value setting for Maven projects

We are using SonarQube Scanner to scan our code.
Our code is based out of Maven.
Currently , SonarQube Analysis is reporting bugs considering JDK 1.8 and above.
We use JDK 1.7.

In our Parent pom.xml file, I have these properties but it is complaining.
<java.version>1.7</java.version>
<sonar.java.source>1.7</sonar.java.source>
Referred the below link as well.
Java | SonarQube Docs

Can you please suggest,if anything I am missing.

Hi Suresh

Can you give a bit more context to investigate the issue ?

  • What is your sonarqube version
  • How do you run your scanner
  • Can you post the scanner log

Thanks