@A. Di Matteo,
I just wanted to share the workaround which I have done, I didn't got any appropriate solution to this problem. So basically what jacoco does, its calculate the coverage of your compiled classes after the test phase completed, and aspectj compiler compiled those classes in weaved one. so before weaving, I just need to place my compile classes to some place, so that my project have both the classes(compiled and weaved one.). So I put them in a separate directory, so that jacoco can calculate coverage from there.add in pom.xml
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<copy todir="${project.build.directory}/classesForSonar">
<fileset dir="${project.build.directory}/classes"
includes="**/*" />
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Its work for me, for how I implement compile time weaving you can look
implement compile time weaving with spring boot and aspectj
If anyone found a better solution please post it.Always appreciated. :)