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

Sergei Ivanov commented on MCOBERTURA-75:
-----------------------------------------

@Gayathri: it's not currently possible in 2.4, but will be possible when the 
fix for this issue is released together with version 2.5 of the plugin.

In order to suppress cobertura in the particular maven run, you would just do:
mvn -Dcobertura.skip=true install

Alternatively, a classic property-per-module fine grained approach would be:

1. declare a property in the <properties> section, e.g.
<module1.cobertura.skip>false</module1.cobertura.skip>

2. In your module, set up plugin configuration as follows:
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <version>2.5</version>
    <configuration>
        <skip>${module1.cobertura.skip}</skip>
    <configuration>
</plugin>

The you can optionally run:
mvn -Dmodule1.cobertura.skip=true install

> 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
>            Assignee: Mark Struberg
>             Fix For: 2.5
>
>
> 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