部署新开发的 Eclipse 插件

发布于 2024-07-09 03:53:19 字数 331 浏览 7 评论 0原文

我编写了一个 Eclpise 插件(CDT 的错误解析器),它在 eclipse 的调试器版本中工作得很好。 然而我一生都无法弄清楚如何将插件安装到 Eclipse 中。 我可以将插件导出为 jar 文件,并且导出似乎没有错误。 我将插件 jar 文件放入 eclipse\dropins 中,但 eclipse 未加载它。 如果我将它添加到插件目录中,那就不行了。 features 目录似乎也忽略了我的插件。

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

我很沮丧。 请帮忙。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

春庭雪 2024-07-16 03:53:19

将插件放入 eclipse/plugins 文件夹应该可以工作。 如果没有,通常意味着 Eclipse 出于性能原因缓存了插件配置。 您可以通过使用 -clean 命令行参数启动 Eclipse 来强制 Eclipse 重新扫描插件目录以查找更改。

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

  1. 创建功能项目,然后使用功能编辑器将插件添加到功能中。
  2. 创建更新站点项目,并使用更新站点编辑器将您的功能添加到更新站点。
  3. 构建更新站点。 这将创建一个 site.xml 文件、一个 features 文件夹和一个 plugins 文件夹。

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

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.

醉生梦死 2024-07-16 03:53:19

不知道我做了什么搞砸了我的 Eclipse 安装。 但是重新安装 eclipse 并将插件放入 dropins 就可以了!

No Idea What I did to screw up my eclipse install. But reinstalling eclipse and putting the plugin in dropins worked just fine!

如何视而不见 2024-07-16 03:53:19

C:\eclipse\plugin 目录下有一个文件夹,只需复制该 .jar 文件并将其粘贴到该文件夹​​中即可,然后关闭 eclipse IDE,完成后再次打开检查插件效果

there is a folder under the directory C:\eclipse\plugin just copy that .jar file and paste it into this folder before doing this close the eclipse IDE and open it again when u are done check the plugin effect

﹏雨一样淡蓝的深情 2024-07-16 03:53:19

以下是更多信息:
要在标准 Eclipse 安装中使用插件,您可以将其导出为本地插件并将其放入 Eclipse 安装中,或者将其导出为功能部件并使用 Eclipse 更新管理器来安装它......
http://www.vogella.de/articles/EclipsePlugIn/article.html#deployplugin

Here is more information:
To use your plug-ins in your standard Eclipse installation you can either export it locally as plug-in and place it into your Eclipse installation or you export it as feature and use the Eclipse update manager to install it....
http://www.vogella.de/articles/EclipsePlugIn/article.html#deployplugin

荒路情人 2024-07-16 03:53:19

我的插件没有被加载的原因是我的插件有CDT的功能,而CDT Development SDK没有安装在eclipse中。

一旦我安装了 CDT Development SDK 工具,我的插件就会自动加载。

The reason why my plugin was not being loaded was that my plugin had features of CDT and CDT Development SDK was not installed in eclipse.

Once I installed the CDT Development SDK tools, my plugin was loaded automatically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文