部署新开发的Eclipse插件 [英] Deploying a newly developed Eclipse Plugin

查看:153
本文介绍了部署新开发的Eclipse插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个Eclpise插件(CDT的错误解析器),它在eclipse的调试器版本中工作得很好。然而,我无法为我的生活找出如何将插件安装到eclipse。我可以导出插件作为一个jar文件,它似乎导出没有错误。我把插件jar文件放在eclipse\dropins中,它没有被eclipse加载。如果我把它添加到plugins目录下,没有运气。功能目录也似乎忽略了我的插件。



所以我想,好的,我会尝试通过GUI安装它。所以我浏览到插件归档的位置,并将其添加为本地更新站点,但eclipse抱怨没有插件。



我很沮丧。请帮助。

解决方案

将插件插入eclipse / plugins文件夹应该可以工作。如果不这样做,通常意味着由于性能原因,Eclipse已经缓存了插件配置。您可以通过使用 -clean 命令行参数启动Eclipse来重新扫描插件目录以进行更改。



典型的部署机制Eclipse是使用功能。一个功能包括插件(在您的情况下,可能只有一个),并且可以通过Eclipse更新管理器进行安装。要使用功能部署插件,您可以执行以下操作:


  1. 创建一个功能项目,并使用功能编辑器。

  2. 创建更新站点项目,并使用更新站点编辑器将功能添加到更新站点。

  3. 构建更新站点。这将创建一个site.xml文件,一个features文件夹和一个plugins文件夹。

然后你应该可以指出Eclipse更新在包含site.xml的文件夹或URL的管理器中,并以这种方式安装您的插件。这种方法的优点是您可以将文件上传到网站并远程部署。


I have written an Eclpise plugin (an Error Parser for the CDT), and it works just fine in the debugger version of eclipse. However I cannot for the life of me figure out how to install the plugin into eclipse. I can export the plugin as a jar file, and it seems to export without errors. I put the plugin jar file into eclipse\dropins and it is not loaded by eclipse. If I add it to the plugins directory, no luck. The features directory also seems to ignore my plugin.

So I thought, OK, I'll try installing it through the GUI. So I browse to where the plugin archive is and add it as a local update site, but eclipse complains there is no plugin there.

I'm frustrated. Please help.

解决方案

Putting the plugin into the eclipse/plugins folder should work. If it doesn't, that usually means Eclipse has cached the plugins configuration for performance reasons. You can force Eclipse to rescan the plugins directory for changes by starting it with the -clean command-line argument.

The typical deployment mechanism for Eclipse is to use features. A feature includes plugins (in your case, probably just one), and can be installed through the Eclipse update manager. To deploy your plugin using a feature, you would do the following:

  1. Create a feature project, and add your plugin to the feature using the feature editor.
  2. Create an update site project, and add your feature to the update site, using the update site editor.
  3. Build the update site. This creates a site.xml file, a features folder, and a plugins folder.

You should then be able to point the Eclipse update manager at the folder or URL containing the site.xml, and install your plugin that way. The advantage of this approach is you can upload the files to a website and deploy remotely.

这篇关于部署新开发的Eclipse插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆