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