eclipse作為一個雞肋般的java ide,頗有食之無味棄之可惜之感。最近公司統一對電腦做了一些處理,搞的我的eclipse都不能用了。重新安裝了一下,各種maven、svn,代碼格式什么的依賴神煩,尤其是svn插件,subeclipse代碼庫在國外,國內用戶慘的一逼,直接拉代碼根本拉不動。最后使用了離線安裝才弄好。
subeclipse與subverse
Subclipse 主頁位於 http://subclipse.tigris.org/ ,與SVN(http://subversion.tigris.org/)聯系緊密,我 們可以稱之為 SVN 官方的 eclipse 插件。而Subversive 則是 eclipse 官方的 SVN 插件,主頁位於 http://www.eclipse.org/subversive/ 。
Subclipse 是 SVN 直接支持的項目,在很早的時候就已經出現了。而 Subversive 最先是由一個第三方公司 Polarion 開發的。早先有傳聞 Subclipse 將會成為 Eclipse Foundation 成員的傳聞,可是最后卻出現了令人大跌眼鏡的結果,Subversive 率先成為了 Eclipse 的子項目。這中間到底出現什么情況,我們就不得而知了。或許 Eclipse 與 SVN 兩個都非常成功的開源項目間,某些協議出現一些爭議了吧。
不管是 Subclipse 還是 Subversive ,它們使用的 SVN 連接器不外乎這兩種,JavaHL 和 SVNKit ( http://svnkit.com/ ),SVNKit 是 Subversion 的純 Java 連接庫版本,整個連接底層都是由 Java 實現的,不需要額外的支持。而 JavaHL 則使用的是 Subversion 原生的連接庫,加上了 Java 調用庫。這兩種連接庫給人表征的感覺應該是 JavaHL 在連接穩定性和速度上應該占優,而 SVNKit 則應該更省事,適用性更廣。如果非要推薦一個的話,我還是建議先選擇 JavaHL,如果 JavaHL 無法在你的系統中正常工作,再選擇 SVNKit 。
應該安裝什么版本的subeclipse:
Subclipse 1.4.x includes and requires Subversion 1.5.x client features and working copy format.
Subclipse 1.6.x includes and requires Subversion 1.6.x client features and working copy format.
Subclipse 1.8.x includes and requires Subversion 1.7.x client features and working copy format.
Subclipse 1.10.x includes and requires Subversion 1.8.x client features and working copy format.
subclipse1.10.x 有兩個版本,site-1.10.13-1.8.x.zip和site-1.10.13-1.9.x.zip,第一個版本適合svn1.8,后一個版本適合svn1.9
Links for 1.10.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.10.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.10.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Archived releases: http://subclipse.tigris.org/archive
Links for 1.8.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.8.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Archived releases: http://subclipse.tigris.org/archive
Links for 1.6.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.6.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Links for 1.4.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.4.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
eclipse內在線安裝
首先,點擊Eclipse菜單欄的【Help】->【Install New Software】。
然后,在顯示的插件安裝界面【work with】輸入上面的Eclipse update site URL,如1.10.x需要輸入http://subclipse.tigris.org/update_1.8.x
然后選擇需要的插件,一路next,就安裝好了。
eclipse內離線安裝
先下載zip包到本地。
首先,點擊Eclipse菜單欄的【Help】->【Install New Software】.
然后,在顯示的插件安裝界面點擊【Add】按鈕,在彈出的對話框中輸入插件名稱(也可以為空),接着,點擊【Archive】按鈕,選中下載的Eclipse插件安裝包壓縮文件,最后依次點擊【打開】、【OK】按鈕從而確認並關閉最上層的兩個對話框。
其他與上面相同。
以插件目錄方式安裝
windows版請參考參考博客http://www.softown.cn/post/81.html
mac版方式:
筆者參考了EclEmma的安裝說明文檔:http://www.eclemma.org/installation.html
將zip包解壓復制到eclipse安裝目錄的dropins目錄下:
<your eclipse installation>/
+- dropins/
+- size-x.y.z/
+- plugins/
| +- ...
+- feature/
+- ...
mac端JavaHL安裝問題
如果想要JavaHL而不可用,可以參考以下文檔安裝:http://www.cnblogs.com/caowei/p/3282599.html