开发者

How do I disable Cobertura in a child project when it is enabled by a Maven parent pom?

开发者 https://www.devze.com 2023-04-12 21:13 出处:网络
I have many projects which inherit from a parent pom. I enable Cobertura coverage reports in the parent via a Maven profile that is activated in our Jenkins CI builds. However, I want to disable Cober

I have many projects which inherit from a parent pom. I enable Cobertura coverage reports in the parent via a Maven profile that is activated in our Jenkins CI builds. However, I want to disable Cobertura for one child project (while getting everything else from the parent pom). What is the best way to achieve this?

My first thought is to use :

                    <configuration>
                        <instrumentation>
                            <excludes>
                                <exclude>**/*.class</exclude>
                            </excludes>
                        </instrumentation>

but I'd rather just skip the entire step and not gen开发者_如何学编程erate an "empty" Coverage report.


Use the 'skip' configuration item as documented cobertura-maven-plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消