|
|
|
[
Permlink
| « Hide
]
Jeff Black - 13/Sep/07 02:50 PM
Forgot to mention this was NOT a historical dashboard run.
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. This is the trace from "mvn -e -X dashboard-report:dashboard>maven.log"
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 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 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 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.
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 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? 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 released this day, February 10th 2008 as 1. 0-SNAPSHOT : dashboard-maven-plugin-1.0-20080210.183905-16.jar
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||