Maven Cobertura plugin not generating coverage.xml

前端 未结 8 1882
我在风中等你
我在风中等你 2021-01-31 15:01

I am trying to generate a coverage.xml so that I can reference it in Cobertura plugin of Hudson, but the file is not being created.

I\'ve added the following to my POM

8条回答
  •  既然无缘
    2021-01-31 15:46

    I'm still quite a novice with the connections between Maven Plugins and Hudson and it's plugins - so this isn't an intelligent answer by any means, but help on Google is very few and far between for this issue - so hopefully it helps someone in the future.

    After spending a few more hours of tinkering with settings, I've found that the coverage.xml simply doesn't seem to be built locally.

    This is the combination that got it working:

    1. I had changed my version to 2.2 in my POM (I was getting resource not found errors from Apache with 2.5.1)
    2. Added cobertura:cobertura in my Hudson goal
    3. Set the Cobertura coverage pattern to the recommended **/target/site/cobertura/coverage.xml

提交回复
热议问题