My project structure is like following:
[workspace]
|-pom.xml
|-[module_1]
|-pom.xml
|-[src]
|-[java]
|-class1
|-[test]
|-class1test
|-[module_2]
|-pom.xml
|-[src]
|-[java]
|-class2
|-[test]
class1 needs class2 from module_2, but when i run the unit test class1test i get no code coverage for class2.
I googled hours but can't find a solution that works.
Some posts mentioned to use <classDumpDir> to dump the classes and use them at report generation. Dumping the classes works fine.
But i can't find an example how to use the dumped classes while generating the report.
I tried to use <include> in the configuration section of report configuration but this results in an empty report.
Can anyone explain how to use the dumped classes at report generation?
Regards,
Andre
OK, thanks!
I waste some time to get this running in a sample project. maven complains about a missing build-main.xml. But as i understand in need no build-xml's when defining the ant task in maven, am i wrong?
Regards,
Andre
Hi Marc,
i solved it. My fault was that i put the ant-run pom that you linked too diretcly in my root-pom. But i have to create an extra project, and now it works.
Regards,
Andre