简体   繁体   English

安装我自己的eclipse插件后无响应

[英]No response after installing my own eclipse plugin

Recently I have developed an eclipse plugin, I exported my plugin by this method "Export" > "Deployable plug-ins and fragments" , after that I got my .jar plugin , and put it into ~/eclipse/plugins , my plugin has shown successfully in my eclipse. 最近,我开发了一个eclipse插件,通过“导出” > “可部署的插件和片段”方法导出了我的插件,之后我得到了.jar插件,并将其放入~/eclipse/plugins ,我的插件具有显示成功在我的日食。 However some of my workmates have no response after they put it into ~/eclipse/plugin , some of them can get it while some can't. 但是,当我的一些同事将其放入~/eclipse/plugin后,他们没有任何反应,有些人可以得到它,而有些则不能。 Especially the ones who use adt-bundle to install my plugin have no response. 特别是那些使用adt-bundle安装我的插件的人没有反应。 I have changed my build jar method to: "Export" > "JAR file" , but failed. 我已将构建jar方法更改为: “导出” > “ JAR文件” ,但失败。 Is my build jar method wrong or my install method jar wrong? 我的构建jar方法错误还是安装方法jar错误?

First guess is that your colleagues have some dependency issues that prevents the plugin from loading. 首先,您的同事有一些依赖问题,这些问题会阻止插件加载。 This is easy to check: 这很容易检查:

"Help" -> "About" -> "Installation details", click on tab "configuration". 在“帮助”->“关于”->“安装详细信息”中,单击选项卡“配置”。 You will see a list containing entries such as; 您将看到一个包含条目的列表,例如;

org.apache.commons.io (2.0.1.v201105210651) "Apache Commons IO" [Resolved]
org.apache.commons.lang (2.6.0.v201205030909) "Apache Commons Lang" [Resolved]
org.apache.commons.logging (1.1.1.v201101211721) "Apache Commons Logging Plug-in"    [Resolved]
org.apache.felix.gogo.command (0.10.0.v201209301215) "Apache Felix Gogo Command" [Active]

Search for the id of your plugin. 搜索您的插件的ID。 A couple of things can happen here: 这里可能发生几件事:

  1. You dont find your plugin at all in the list. 您在列表中根本找不到您的插件。 This means it was never found at all. 这意味着根本找不到它。 Copying the jar to the plugins dir is not the recommended way to install a plugin and it can fail. 建议不要将jar复制到插件目录,否则可能会失败。 The best alternative is to create an update site, and let your colleagues install it from that. 最好的替代方法是创建一个更新站点,然后让您的同事从中进行安装。 Regardless of the issue, this is something you should do. 无论问题如何,这都是您应该做的。 Don't worry, its really easy and can be done pretty much completely by an Eclipse wizard. 不用担心,它确实很容易,并且可以通过Eclipse向导完全完成。
  2. The plugin is in the list, but has state "[Installed]". 该插件在列表中,但状态为“ [已安装]”。 This means it was found but something prevented it from starting. 这意味着找到了它,但是由于某种原因阻止了它的启动。 Usually this is due do missing dependencies. 通常这是由于缺少依赖项。 See here . 这里
  3. The plugin has state "[Resolved]". 插件的状态为“ [已解决]”。 All dependencies are ok, but for some reason it hasn't been started. 所有依赖项都可以,但是由于某种原因它尚未启动。 Perhaps you used a menu/view that isn't enabled in the ADT perspective? 也许您使用了ADT透视图中未启用的菜单/视图?
  4. State "[Active]" means it is currently running. 状态“ [活动]”表示它当前正在运行。 If it cant be seen it could be that its UI parts aren't enabled or visible. 如果看不到,则可能是其UI部分未启用或不可见。

Also see my answer here 也可以在这里看到我的答案

Regardless of the issue and the solution, I would strongly suggest you install the plugin by creating an update site. 无论问题和解决方案如何,我都强烈建议您通过创建更新站点来安装插件。 That is the only guaranteed way it will work. 那是它工作的唯一保证方式。 Dependency issues will be seen immediately. 依赖性问题将立即可见。 Copying to plugin folder is not the correct way and dropins folder aren't guaranteed to work. 复制到插件文件夹不是正确的方法,不能保证dropins文件夹能正常工作。 (I have the feeling it is deprecated, but cant find offical source for that) (我觉得它已被弃用,但无法为此找到官方来源)

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

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