Jacoco-maven-plugin:prepare-agent test does not coverage for multi module projects

I have multi module project something like

  • main
  • child1
    • innnerchild
      • pom.xml
    • pom.xml
  • child2
    • pom.xml
  • pom.xml

I have integrated gitlab ci/cd jobs and using
mvn -U clean org.jacoco:jacoco-maven-plugin:prepare-agent test org.jacoco:jacoco-maven-plugin:report-aggregate
provided artifacts paths but some how when i run the job its not coverage UT or IT of child modules

In my parent pom.xml, i have provided only modules name not any dependency of child module (as i have 30+ services which having multi module project so providing dependencies in parent pom.xml doesn’t sound good for me)


Can anyone help me out to rectify this issue? Do i need to do any specific configuration in pom.xml
Note: I have already included jacoco-maven-plugin and provided the goals and output directory name

Would really appreciate for any help