http://www.scala-ide.org/如何手動安裝Scala插件?
給 http://download.scala-ide.org/update-current-35
有features和plugins目錄。我應該使用哪一個?我是否應該將它們全部解壓到eclipse功能和/或插件目錄中?
順便說一下功能和插件之間有什麼區別?
http://www.scala-ide.org/如何手動安裝Scala插件?
給 http://download.scala-ide.org/update-current-35
有features和plugins目錄。我應該使用哪一個?我是否應該將它們全部解壓到eclipse功能和/或插件目錄中?
順便說一下功能和插件之間有什麼區別?
您應該同時使用:update-current-35是p2 site在Eclipse中安裝新軟件時,您可以在「可用軟件列表」中輸入。
Eclipse將檢測該地址p2站點內的功能和插件,並將全部安裝它們。
feature and plugin is explained here之間的區別。
不要忘記爲此安裝使用正確的Eclipse版本:Eclipse Classic 3.5.2。
如果您需要手動安裝它,您應該複製從P2網站plugins
和features
目錄的全部內容在您的eclipse.ini引用shared dropins(見本eclipse.ini for eclipse3.5)。
(你不需要複製site.xml
,contents.jar
,artifact.jar
)
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/path/to/myPlugins
您將創建下列樹(類似於此SO answer描述的另一個手動安裝)
C:/path/to/myPlugins
org.scala-ide.1.0.0.201008022319
eclipse
features
ch.epfl.lamp.sdt_2.8.0.scala-ide-upgrade.jar
org.eclipse.contribution.weaving_1.6.4.scala-ide-upgrade.jar
org.scala-ide.sdt.feature_1.0.0.201008022319.jar
org.scala-ide.sdt.weaving.feature_1.0.0.201008022319.jar
plugins
org.aspectj.runtime_1.6.9.20100629172100.jar
org.aspectj.weaver_1.6.9.20100629172100.jar
org.eclipse.contribution.weaving.jdt_2.1.0.e35x-release-20100630-1500.jar
org.eclipse.equinox.weaving.aspectj_1.0.0.v20100108.jar
org.eclipse.equinox.weaving.hook_1.0.0.v20100108.jar
org.scala-ide.scala.compiler_2.8.0.jar
org.scala-ide.scala.library_2.8.0.jar
org.scala-ide.sdt.aspects_1.0.0.201008022319.jar
org.scala-ide.sdt.core_1.0.0.201008022319.jar
org.scala-refactoring.library_0.2.0.201008022305.jar
scalariform_0.0.5.201007302350.jar
注:
直接位於myPlugins下的'org.scala-ide.1.0.0.201008022319
'文件夾實際上可以是任何名稱!我剛剛從功能ID中獲得了一個名字,以清楚地標識出您正在安裝的Scala插件。
如果您的myPlugins
中有多個Scala版本,即使您將它們安裝在'a/eclipse/...
','b/eclipse/...
','c/eclipse/...
'中,p2也會自動檢測到最新的一個。
我只是發現'org.scala-ide.1.0.0.201008022319
'比'a
','b
'或'c
'更精確,以便記住我共享的下拉列表中包含的確切插件。
爲了確保包含Scala插件可能需要的所有依賴項,您需要擁有正確的Eclipse版本(經典3.5.2)。
本地安裝:
你可以你的eclipse中的 '的dropins' 目錄中創建非常相同的樹( '')。
您不需要在eclipse.ini
中聲明共享的dropins目錄。
我只是更喜歡使用共享的下拉菜單,因爲我有很多eclipse安裝,但是如果您有正確的eclipse,您可以直接在</path/to/your/eclipse/dropins>
中製作同一棵樹。
骯髒的安裝:
最後,你可以:
http://download.scala-ide.org/update-current-35/plugins/
' 在plugins
目錄你的eclipse的內容。features
目錄中複製'http://download.scala-ide.org/update-current-35/features/
'的內容。但我覺得這不是很乾淨,因爲它混合了Eclipse發行版附帶的本地插件和您添加的額外插件。
嗨,我知道如何安裝這個插件與網址,我的問題是關於安裝它手動:) – user310291 2010-08-02 21:44:35
我也可以用這與Galilleo版本? http://wiki.eclipse.org/Equinox_p2_Getting_Started – user310291 2010-08-03 06:15:23
@asksuperu:是的,你可以,但「支持的下拉格式」導致我在我的答案中提到了相同的樹結構。並且,bundle pooling比共享dropins更復雜(我提到了bundle pooling [在這個SO回答中](http://stackoverflow.com/questions/582391/installing-eclipse-3-4-plugins-in-a -directory-其他超eclipsehome-插件/ 582430#582430))。 – VonC 2010-08-03 06:28:33
只需拖放Scala IDE即可。您可以在下面的鏈接中找到拖放圖像文件(安裝)。
http://marketplace.eclipse.org/content/scala-ide
http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=421
然後按照安裝步驟。
正如你所建議的那樣,我將安裝圖標從http://marketplace.eclipse.org/content/scala-ide放入我的IDE中,因此我可以使用Eclipse。但現在,如果我複製我的eclipse安裝到另一臺機器,當我在另一臺機器上打開IDE時,我沒有看到Scala(例如沒有Scala透視圖)。怎麼來的? – inor 2018-03-04 15:26:25
我知道它的一個老問題,也許更好的處理/通過各種網站回答,雖然我剛纔添加以下內容作爲一個更新站點,並安裝相關的作品!
http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site
爲Eclipse的霓虹燈版本,我們可以通過以下步驟添加的Scala插件。
我編輯並完成了我的答案,以解決Scala插件的*手冊*安裝部分。 – VonC 2010-08-03 04:22:37