Cannot install Cobertura plugin for Eclipse

非 Y 不嫁゛ 提交于 2019-12-03 22:13:33

I was able to get eCobertura to install by copying over the junit plugin subdirectories from a previous version of Eclipse into my plugins/ directory, then restarting Eclipse.

The junit version that came with my Eclipse (Spring Toolsuite v3.3) was org.junit_4.11.0.v201303080030. This is that one that caused eCobertura install to fail.

The two versions that I copied over from STS 3.2 were org.junit4_4.8.1.v20120523-1257 and org.junit_4.10.0.v4_10_0_v20120426-0900.

Installing eCobertura on new eclipse (Kepler, Luna) causes a problem because of newer version of JUnit package which is not treated by eCobertura dependencies checker.

One of solutions (suggested in the previous answer) is that you have to copy org.junit* packages from old eclipse installation, but that can be a problem if you don't have it.

Solution for completely new installation is very similar: You have to download org.junit4_4.8.1.v20120523-1257.jar from the internet and just place it to plugins folder of eclipse.

Note that you don't need to add org.junit_4.10.0.v4_10_0_v20120426-0900.jar in that case.

After that, you will be able to install eCobertura.

Sumit Sahay

Download eclipse from this link and go to $eclipse_home/plugins and copies these folders

  • org.junit_4.10.0.v4_10_0_v20120426-0900
  • org.junit4_4.8.1.v20120523-1257

A little late, but just wanted to add that this worked for STS 3.8.1 using Eclipse Mars. Simply download the JAR specified above and place into the 'plugins' folder.

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