无法让 Eclipse 识别我的插件

发布于 2024-12-10 12:16:40 字数 298 浏览 0 评论 0原文

我通过清单中的“导出向导”导出了我的 Eclipse 插件,看起来一切都很顺利(没有错误)。它在 zip 文件的插件目录中创建了一个 .jar 文件。

我以为将 jar 放入我的 Eclipse 插件目录中就会安装它(重新启动 eclipse 后),但这不起作用。 Eclipse 无法看到该插件(透视图未显示)

我尝试使用“帮助”->“安装新软件”->“本地存档”,但它一直显示“未找到软件”

你能帮我准备好我的插件吗安装在新的 Eclipse 副本上?

诗。我的插件使用其他依赖项,例如 EMF/GMF

I exported my eclipse plugin through the "Export Wizard" in the manifest and seems like everything went well (no errors). It created a .jar file within a plugin directory in a zip file.

I thought putting the jar into my Eclipse plugin directory would install it (after re-launching eclipse) but that didn't work. Eclipse can't see the plugin (the perspective isn't showing up)

I tried with Help->Install new software->local archive but it keeps saying "no software found"

Can you help me getting my plugin ready to be installed on a fresh Eclipse copy?

Ps. my plugin uses other dependencies like EMF/GMF

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

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

发布评论

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

评论(5

清风无影 2024-12-17 12:16:41

在 Eclipse 中,转到控制台窗口。从下拉菜单中,选择 OSGI 控制台。运行命令 ssss <您的插件名称>
然后您将看到插件的状态和数字。状态可能会是“已安装”,这意味着如果已找到,但某些依赖关系未得到满足。

运行命令 diag <您的插件编号> 您将看到它没有启动的原因。

有关更多详细信息,请参阅我的包在哪里

编辑:验证的第一步该插件正在工作将使用您的插件启动一个新的 eclipse 实例。在运行配置对话框中,有一个选项卡,其中包含应启动的所有插件。确保您的已选中,它将以新的 Eclipse 实例启动。

In eclipse, go to your console window. From the drop down meny, select OSGI console. Run the command ss or ss <name of your plugin>
You will then see the state of your plugin and a number. The state will probably be "installed" which means if has been found, but some dependencies were not satisfied.

Run the command diag <number of your plugin> and you will see why it wasn't started.

For more details, see Wheres my bundle

Edit: A first step to verify that the plugin is working would be to start up a new eclipse instance with your plugin. In the run configuration dialog, there is a tab with all the plugins that should be started. Make sure yours is checked and it will start with the new eclipse instance.

脱离于你 2024-12-17 12:16:41

如果您使用的是 Eclipse 3.4 或更高版本,请将您的插件放在“dropins”目录中。

要通过“帮助”->“安装新软件”进行安装,您需要创建“更新站点”或“p2 存储库”。

If you are using Eclipse 3.4 or above, put your plugin in the 'dropins' directory.

To install via Help->Install new software you need to create an 'Update site' or a 'p2 repository'.

衣神在巴黎 2024-12-17 12:16:41

到目前为止,Vogella 提供了关于安装插件的最详细的描述 插件的部署 - 它涵盖

了您安装插件的所有 3 种可能的方式,详细介绍了优点和优点。以下每种方法的缺点:

1.从 Eclipse IDE 2 安装插件

。导出插件并放入dropins文件夹

3 .为您的插件创建更新站点

By far the most ellaborate descriptions of installing your plugin is provided by Vogella deployment of your plug-in

It covers all 3 possible ways in which you may install your plugin detailing the pros & cons of each of the following approaches :

1 . Installing your plug-in from your Eclipse IDE

2 . Export plug-in and put into dropins folder

3 . Create update site for your plug-in

清引 2024-12-17 12:16:41

有时您只需重新启动 Eclipse。文件->重新启动并重试。对我有用,因为 Eclipse 正在缓存我本地更新站点的结果。

Sometimes you just have to restart Eclipse. File -> Restart and try again. Worked for me because Eclipse was caching the results of my local update site.

∞琼窗梦回ˉ 2024-12-17 12:16:41
  1. 打开plugin.xml

  2. 在“导出部分”的“概述”选项卡中转到“导出向导”

  3. 在“目标”部分的“导出”窗口中,选择“安装到主机.存储库”并选择看起来像“xxx/.metadata/”的目录.plugins/org.eclipse.pde.core/install/"

  4. 按“完成”按钮

  5. 等待导出完成,没有任何问题

  6. 重新启动 Eclipse

  1. Open plugin.xml

  2. In "Overview" Tab in "Exporting section" go to "Export Wizard"

  3. In "Export" window in "Destination" section choose "Install into host. Repository" and choose dir which will looks like "xxx/.metadata/.plugins/org.eclipse.pde.core/install/"

  4. Press "Finish" button

  5. Wait for Export to finish without any problems

  6. Restart Eclipse

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