[ http://jira.codehaus.org/browse/MCOBERTURA-31?page=all ]
Brett Porter updated MCOBERTURA-31:
-----------------------------------
Fix Version: 2.0
> Cobertura fails with empty source folders
> -----------------------------------------
>
> Key: MCOBERTURA-31
> URL: http://jira.codehaus.org/browse/MCOBERTURA-31
> Project: Maven 2.x Cobertura Plugin
> Type: Bug
> Environment: Maven Cobertura Plugin 2.0-SNAPSHOT, Maven 2.0.4, Windows XP,
> Java 5
> Reporter: Celso Gomes Barreto Junior
> Fix For: 2.0
>
>
> When running "mvn site" configured to use cobertura report, it fails when
> there is no source code in source folder. Instead, it should be ignored by
> the plugin.
> It's important when you use multi-module projects with a parent pom that
> defines the reports that should be generated on all modules sites. For
> example, my project has 3 modules with source code and onde only with web
> pages (without java source code). The parent pom defines the reports used by
> child POMs and the site generation fails as follows:
> [INFO] Generate "Maven Surefire Report" report.
> [INFO] Generate "Cobertura Test Coverage" report.
> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> [ERROR] Error: data file
> C:\Projetos\ProcdevReferencia\webcommons\cobertura.ser
> does not exist
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error during report generation
> Embedded error: Error in Cobertura Report generation: Unable to generate
> Cobertu
> ra Report for project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira