exlipse安裝cobertura插件出錯問題解決

★:請先看完步驟在按照步驟操作!!


1.安裝報錯:

打開exlipse的商店:help》exlipse marketplace

搜索cobertura,點擊安裝

在安裝的過程中報如下錯誤:

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

2.錯誤原因:

我理解的意思是junit的版本不對,在網上找了很久,終於找到了問題出在哪裏。


3.解決辦法

下載

org.junit4_4.8.1.v20120523-1257

org.junit_4.10.0.v4_10_0_v20120426-0900

兩個版本中的任何一個,我用的是第一個。

解壓後放入exlipse安裝目錄下的pulgins文件夾下,重啓exlipse,重新進入商店安裝後就可以成功。


4.需要注意的地方:

安裝過程中有一個需要手動選擇jar包的環節,全選點擊繼續或者確定。


5.參考資料:

http://stackoverflow.com/questions/18630141/cobertura-pluging-for-eclipse-kepler

http://kennethxu.blogspot.com/2012/01/cobertura-and-eclipse-ecobertura.html

jar包下載:

http://pan.baidu.com/s/1nt0mzbF



6.如有問題請在評論中留言

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章