开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜