Sonar cube Showing as 0.0% code coverage for Maven Project with Multi Module

We are deploying our code in local and then we are running our Automation Test scripts and generating the Jacoco binary output xml report.

Finally when we provide this XML output to Sonar, for Projects with single module code coverage is shown correctly.

But For Multi Module Project, Code coverage is showing as 0.0%. Base directory shown in the sonar console is different from the actual code available directory.

  1. We have tried updating the directory using below , but still didn’t work
    -Dsonar.sources=src -Dsonar.java.binaries=**/*"
    -Dsonar.projectBaseDir=src/main/java

Kindly let us know your inputs, any way to make sonar work for Multi Module Projects

Hi,

Welcome to the community!

Could you share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann