What versions of cobertura and surefire plugins wo

2019-08-03 02:42发布

What versions of cobertura and surefire plugins work together under maven3?

After switching to maven3 I've found out, that mvn cobertura:cobertura is no longer generating report about test coverage (the coverage displayed is 0%). It was working under maven2...

However, after finding, that in one of the other projects reports are still working, I've analysed the effective pom. After finding out I was using other versions of plugins, I've downgraded maven-surefire-plugin from version 2.8 to 2.4.3. I'm using maven-cobertura-plugin in version 2.5.1.

This is a working solution, however the plugin versions I use are quite old, but I don't want to experiment until I find the working pair of version. So, my question is, what is causing the incompatibility between this two plugins? Is it a bug or the behaviour of the plugins have changed between versions in the way that made them incompatibile? Where to find the information about plugin compatibility, and not the plugin itself?

1条回答
狗以群分
2楼-- · 2019-08-03 02:59

See my answer to this. Basically forkMode=never is not guaranteed to work with cobertura and was only working by accident in older versions of Maven.

查看更多
登录 后发表回答