History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MOJO-910
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: David Vicente
Reporter: Jeff Black
Votes: 5
Watchers: 6
Operations

If you were logged in you would be able to see more operations.
Mojo

Multimodule dashboard report does not include cobertura or clover sections

Created: 13/Sep/07 02:47 PM   Updated: 10/Feb/08 12:44 PM  Due: 10/Feb/08
Component/s: dashboard
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. HTML File dashboard-report-details.html (8 kb)
2. HTML File dashboard-report.html (4 kb)
3. Text File dashboard-run.txt (11 kb)
4. File dashboard.diff (1 kb)
5. Text File maven.log (46 kb)

Environment:
maven 2.0.6
jdk1.5
Issue Links:
dependent
 

Complexity: Intermediate


 Description  « Hide
I run mvn clean site, then mvn dashboard-report:dashboard on a multimodule project. Each subproject that has tests correctly generate the cobertura report. The toplevel dashboard, however, does not include a section or any links for cobertura. The same happens when I swap in clover for cobertura. The toplevel dashboard-report.xml confirms no code coverage details.

The dashboard-plugin snapshot version that maven picked up was 1.0-20070907.172709-15.

Attached is the output of mvn dashboard-report:dashboard

Jeff



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Black - 13/Sep/07 02:50 PM
Forgot to mention this was NOT a historical dashboard run.

David Vicente - 14/Sep/07 01:55 AM
could you do a "mvn -e -X dashboard-report:dashboard>maven.log" and attach this log to this issue ?

Coul you also attach the "dashboard-report.html" and "dashboard-report-details.html" of the toplevel dashboard ?

because i have not this problem.


Jeff Black - 14/Sep/07 10:24 AM
This is the trace from "mvn -e -X dashboard-report:dashboard>maven.log"

Jeff Black - 14/Sep/07 10:27 AM
David,

Additional files attached as requested. I also just noticed that stderr for the "mvn -e -X dashboard-report:dashboard>maven.log" run had the following:

$ mvn -e -X dashboard-report:dashboard>maven.log

Cobertura: Error reading file c:\dev\svn\java.net\sip-bc\sipbc\extensions\jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file c:\dev\svn\java.net\sip-bc\sipbc\jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file c:\dev\svn\java.net\sip-bc\sipbc\extensions\jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file c:\dev\svn\java.net\sip-bc\sipbc\extensions\jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file c:\dev\svn\java.net\sip-bc\sipbc\jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.Co
verageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840


Jeff Black - 14/Sep/07 02:28 PM
I found the problem. The maven cobertura plugin depends on cobertura-runtime-1.9, while the dashboard plugin is still using 1.7. Additionally, for v1.9, the groupId for cobertura has changed from "cobertura" to "net.sourceforge.cobertura".

Updating the dashboard plugin locally with these changes resulted in the dashboard html files being correctly populated with a cobertura section.

Recommend this change for the next release of the dashboard plugin.

Jeff


David Vicente - 04/Oct/07 10:11 AM
So before that, i must test for those who are still using Cobertura 1.7.

I hope that cobertura-runtime-1.9 continue to read correctly the cobertura.ser binary file generated by the cobertura-runtime-1.7


Wojciech Durczynski - 09/Nov/07 08:00 AM
I changed version of cobertura runtime in dashboard plugin to 1.9. But when using dashboard plugin it throws null pointer exceptions. They happen when getting version number from cobertura-maven-plugin and that's very weird. I attach the patch file with workaround for this issue. It works fine for me now. Cobertura reports are aggregated well.

David Vicente - 09/Nov/07 09:16 AM
The used code in your patch is not the right one.

the real SVN url is : https://svn.codehaus.org/mojo/trunk/sandbox/dashboard-maven-plugin/

i don't know why you have a NPE with this code.

what is the full jar name of dashboard that you have in your repository ?

the last one is dashboard-maven-plugin-1.0-20070907.172709-15.jar


Franck HUGOT - 28/Nov/07 11:21 AM
I have this version in my repo and get the same error :

Cobertura: Error reading file C:\Developpement\Workspaces\ProjetsDemo\polen\target\cobertura\cobertura.ser: net.sourceforge.cobertura.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840

Is there a simple workaround?


Mick Knutson - 15/Jan/08 11:56 PM
I am using cobertura 2.2 and dashboard 1.0-SNAPSHOT and I get the same thing:

Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-a3\target\cobertura\cobertura.ser: net.sourceforge.cobertura.covera
gedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-exception\target\cobertura\cobertura.ser: net.sourceforge.cobertura
.coveragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-jar\target\cobertura\cobertura.ser: net.sourceforge.cobertura.cover
agedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-logging\target\cobertura\cobertura.ser: net.sourceforge.cobertura.c
overagedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\services\logging\target\cobertura\cobertura.ser: net.sourceforge.cobertura.covera
gedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840
Cobertura: Error reading file C:\viewstore\esp_lynx_dap\esp\dap\utilities\services\logging-mdb\target\cobertura\cobertura.ser: net.sourceforge.cobertura.co
veragedata.CoverageDataContainer; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 2152686494816595840


David Vicente - 09/Feb/08 12:34 PM
ok done

David Vicente - 10/Feb/08 12:44 PM
released this day, February 10th 2008 as 1. 0-SNAPSHOT : dashboard-maven-plugin-1.0-20080210.183905-16.jar