[
https://jira.codehaus.org/browse/MCOBERTURA-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292763#comment-292763
]
Karl M. Davis commented on MCOBERTURA-154:
------------------------------------------
As a workaround (depending on your use case), you can do the following to
_actually_ disable the Cobertura plugin's non-report executions:
{noformat}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<executions>
<execution>
<id>check-coverage</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
{noformat}
Please note that I don't think {{<phase>none</phase>}} has any special meaning;
the default lifecycle just doesn't have that phase and so the execution is
never triggered.
> skip still forks a life cycle
> -----------------------------
>
> Key: MCOBERTURA-154
> URL: https://jira.codehaus.org/browse/MCOBERTURA-154
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.5.1
> Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600)
> Maven home: D:\maven\apache-maven-3.0.3\bin\..
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Java home: D:\j2sdk1.6.0_24\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
> Reporter: Jim McCaskey
> Attachments: pom.xml
>
>
> Attached is a pom.xml that shows this problem. It seems that if you add the
> configuration option skip=true, the plugin is still forking off a separate
> run of the lifecycle. It should not do that.
> To reproduce:
> # Run the attached Maven pom.xml using maven 3.0.3 (I have also tested this
> with Maven 2.2.1) with this cli: {code}
> mvn install cobertura:cobertura
> {code}
> # Note the results of the run
> Result:
> The below line is seen twice in the output but should only be seen once{code}
> [echo] Running antrun plugin....
> {code}
> Expected result:
> The line {code}
> [echo] Running antrun plugin....
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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