[ 
http://jira.codehaus.org/browse/MCOBERTURA-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109906
 ] 

Wendy Smoak commented on MCOBERTURA-75:
---------------------------------------

Brett, I tried the following in the module where the build fails, and it didn't 
work.  Is this what you were suggesting?

{noformat}
    <reporting>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>cobertura-maven-plugin</artifactId>
          <version>2.0</version>
          <configuration>
             <check>
            <branchRate>0</branchRate>
            <lineRate>0</lineRate>
            <totalBranchRate>0</totalBranchRate>
            <totalLineRate>0</totalLineRate>
            <packageLineRate>0</packageLineRate>
            <packageBranchRate>0</packageBranchRate>
              </check>
            <instrumentation>
            <excludes>
              <exclude>**/**</exclude>
            </excludes>
            </instrumentation>                                                  
                                                                                
   
          </configuration>
        </plugin>
      </plugins>
    </reporting>
{noformat}

I also tried **/* (but there are no class files to begin with...)  And I still 
get:

[INFO] Generate "Cobertura Test Coverage" report.
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[ERROR] Error: data file 
/Users/wsmoak/svn/maven/archiva/archiva-base/archiva-consumers/archiva-signature-consumers/cobertura.ser
 does not exist

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Error in Cobertura Report 
generation: Unable to generate Cobertura Report for project.

Any idea how to get it to either ignore this module or generate an "empty" 
cobertura.ser file?


> Ability to skip execution
> -------------------------
>
>                 Key: MCOBERTURA-75
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-75
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Wendy Smoak
>
> I'm seeing build errors in modules with no source code and would like to skip 
> the execution of Cobertura for those modules.  
> Something like <configuration><skip>true</skip></configuration> should work 
> in the modules that I want Cobertura to ignore.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to