简体   繁体   English

如何在Eclipse Ganymede中安装自定义插件?

[英]How to install a custom plug-in in Eclipse Ganymede?

We have a custom plug-in. 我们有一个自定义插件。 That is, the company where I'm working developed it in house. 那就是我工作的公司内部开发的。 I would like to install it as an available plug-in in Eclipse Ganymede. 我想将其安装为Eclipse Ganymede中的可用插件。 How do I do that? 我怎么做?

From what I can figure out, the Eclipse software install only supports installation from Eclipse software update sites. 据我所知,Eclipse软件安装仅支持从Eclipse软件更新站点进行安装。

I went to Help -> Install New Software... -> Add -> Local... to browse to a folder containing the plug-in. 我去了帮助->安装新软件...->添加->本地...浏览到包含插件的文件夹。 Although the dialog lets me add the directory as an update site, it doesn't work. 尽管对话框允许我将目录添加为更新站点,但是它不起作用。 It expects that directory to be a local Eclipse update site (I think). 它希望该目录是本地Eclipse更新站点(我认为)。 I get the error 我得到错误

No repository found at file:/G:/TOOLS/...  

Next I just copied the plug-in into the plug-in directory under my Eclipse installation. 接下来,我只是将插件复制到Eclipse安装目录下的插件目录中。 That didn't work either. 那也不起作用。 I also tried copying it into the dropins directory. 我也尝试将其复制到dropins目录中。 No dice. 没有骰子。

Can anyone enlighten me how to install a plug-in that's not on an "update" site? 谁能启发我如何安装不在“更新”站点上的插件?

Thanks in advance.... 提前致谢....

Usually an Eclipse plug-in packaged as zip file is install by extracting it into the Eclipse installation directory (or the plugins directory depending on how it is packaged, as it can also extract files in features directory). 通常,打包为zip文件的Eclipse插件是通过将其解压缩到Eclipse安装目录(或plugins目录,具体取决于打包方式的方式来安装的,因为它也可以在features目录中解压缩文件)。

Next restart Eclipse with the --clean option. 接下来,使用--clean选项重新启动Eclipse。

Did you check the Eclipse error log? 您是否检查了Eclipse错误日志? Maybe the bundle is failing to deploy for some reason. 也许由于某种原因该捆绑软件无法部署。

Otherwise, create a Feature and Update Site for your plugin as described here . 否则,请按照此处所述为插件创建功能和更新站点。 An update site can either be a remote http server (SVN even), or a local directory. 更新站点可以是远程http服务器(甚至是SVN),也可以是本地目录。 The nice thing is that you'll get versioning and the ability to upgrade and uninstall from inside Eclipse. 令人高兴的是,您将获得版本控制以及从Eclipse内部进行升级和卸载的能力。 It also makes things easier once your plugin grows into several plugins because they can be bundled together into a single, versioned feature. 一旦您的插件扩展为多个插件,这也使事情变得更容易,因为它们可以捆绑在一起成为一个单独的版本化功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM