Code coverage shown as 0%

I’m using SonarQube Enterprise Edition 8.4.2
And I’m running the analysis using the mvn sonar:sonar command.
There are certain java classes in my module for which the tests are written, but sonarqube shows 0% code coverage for them.
The tests when run on intellij with code coverage show all the lines are covered, but sonarqube shows them as uncovered lines.
Please let me know if I’m missing something.
Have attached screenshots of the same.


It’s remotely possible that there’s something relevant in your analysis log, but more than likely this is going to be a question of what’s in your coverage report. (I.e. happening before SonarQube/analysis scope.)