Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.10
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Maven 1.0.2 on Windows XP
-
Number of attachments :
Description
When I am using AspectJ plugin with this lines in my maven.xml file:
<preGoal name="java:compile">
<attainGoal name="aspectj"/>
</preGoal>
the Clover report is not generated. The following message is presented:
clover:report:
[echo] No Clover database found, skipping report generation
The folder "target\clover\database" stays empty.
--------------------------------------------------------------------------------------------------
When I am using AspectJ plugin with this lines in my maven.xml file:
<preGoal name="java:compile">
<attainGoal name="aspectj:compile"/>
</preGoal>
an empty Clover report is generated, although there is one test in the project. The following message is presented:
[clover-report] No coverage data found for 'C:\eclipse\workspace\Introduction Example\target\clover\database\clover_coverage.db'.
The file "clover_coverage.db" is created at folder "target\clover\database"
--------------------------------------------------------------------------------------------------
When I am using AspectJ plugin with no preGoal for "java:compile" the Clover report is generated properly.
--------------------------------------------------------------------------------------------------
The MPCLOVER-27 issue reports this same problem, but did not provide data to reproduce it.
Thank you.
I have attached a different testcase. It should compile without problems and it follows closely the best principles of Maven and the documentations of both AspectJ and Clover plugins. When I run "maven site", no clover report is generated. The test are being run twice and the compilation also happens twice.