Mojo

Multimodule dashboard report does not include cobertura or clover sections

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: dashboard
  • Labels:
    None
  • Environment:
    maven 2.0.6
    jdk1.5
  • Complexity:
    Intermediate
  • Number of attachments :
    5

Description

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

  1. dashboard.diff
    09/Nov/07 8:00 AM
    1 kB
    Wojciech Durczynski
  2. dashboard-report.html
    14/Sep/07 10:25 AM
    4 kB
    Jeff Black
  3. dashboard-report-details.html
    14/Sep/07 10:25 AM
    8 kB
    Jeff Black
  4. dashboard-run.txt
    13/Sep/07 2:47 PM
    11 kB
    Jeff Black
  5. maven.log
    14/Sep/07 10:24 AM
    46 kB
    Jeff Black

Issue Links

Activity

Hide
Jeff Black added a comment -

Forgot to mention this was NOT a historical dashboard run.

Show
Jeff Black added a comment - Forgot to mention this was NOT a historical dashboard run.
Hide
David Vicente added a comment -

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.

Show
David Vicente added a comment - 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.
Hide
Jeff Black added a comment -

This is the trace from "mvn -e -X dashboard-report:dashboard>maven.log"

Show
Jeff Black added a comment - This is the trace from "mvn -e -X dashboard-report:dashboard>maven.log"
Hide
Jeff Black added a comment -

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

Show
Jeff Black added a comment - 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
Hide
Jeff Black added a comment -

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

Show
Jeff Black added a comment - 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
Hide
David Vicente added a comment -

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

Show
David Vicente added a comment - 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
Hide
Wojciech Durczynski added a comment -

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.

Show
Wojciech Durczynski added a comment - 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.
Hide
David Vicente added a comment -

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

Show
David Vicente added a comment - 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
Hide
Franck HUGOT added a comment -

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?

Show
Franck HUGOT added a comment - 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?
Hide
Mick Knutson added a comment -

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

Show
Mick Knutson added a comment - 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
Hide
David Vicente added a comment -

ok done

Show
David Vicente added a comment - ok done
Hide
David Vicente added a comment -

released this day, February 10th 2008 as 1. 0-SNAPSHOT : dashboard-maven-plugin-1.0-20080210.183905-16.jar

Show
David Vicente added a comment - released this day, February 10th 2008 as 1. 0-SNAPSHOT : dashboard-maven-plugin-1.0-20080210.183905-16.jar

People

Vote (5)
Watch (7)

Dates

  • Due:
    Created:
    Updated:
    Resolved: