Cannot install Cobertura plugin for Eclipse

Krunal Shah picture Krunal Shah · Sep 5, 2013 · Viewed 17.4k times · Source

I am getting following error message when I tried to install cobertura plugin in eclipse kepler (java/j2ee version) through eclipse market place.

Cannot complete the install because one or more required items could not be found. Software being installed: eCobertura 0.9.8.201007202152 (ecobertura.feature.group 0.9.8.201007202152)

Missing requirement: eCobertura 0.9.8.201007202152 (ecobertura.feature.group 0.9.8.201007202152) requires 'org.junit4 0.0.0' but it could not be found

Answer

user2816065 picture user2816065 · Sep 25, 2013

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.