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

。_饼干妹妹 提交于 2019-12-11 09:37:02

问题


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:


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.



来源:https://stackoverflow.com/questions/10992522/what-versions-of-cobertura-and-surefire-plugins-work-together-under-maven3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!