Hi everyone.
I come here with an issue for which I couldn't find anything yet.
I have a maven multi-module project for with I can succesfuly push into sonarqube the coverage. But one of these module has a pom packaging with submodules and I cannot get the coverage for this one.
What I'm doing is quite complex so I'll try to explain as much as I can
First, here is the structure I have:
- Parent
-- Module 1
-- Module 2
-- Module 3
--- Module 3.1
--- Module 3.2
-- Coverage-report
For all these modules, I have a combination of unit and integration tests that i managed to merge, aggregate and push under sonarqube
The parent pom contains all these step to run with surefire and failsafe the tests. it also have the <goal>merge</goal> to merge in one .exec file the results of unit and integration tests.
Then the report-coverage pom has the dependencies to all modules builded and makes the report-aggregate goal with all merged.exec files
As I said, module 3 as a packaging as pom and is also declared like this as a dependency in the coverage-report.
I see the merged.exec and the results in target repo from module 3.1 and 3.2, but no consolidated coverage in the aggregation for module 3.
I tried to declare the sub module in the coverage but then I have the submodule coverage but sonarqube cannot understand it.
Does this kind of structure have a solution?
Thank you very much for the help