在干净的Eclipse上安装自定义插件 [英] Installing custom plugin on a clean Eclipse

查看:158
本文介绍了在干净的Eclipse上安装自定义插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装我的自定义Eclipse插件,当从清单文件启动时,Eclipse插件可以很好地工作到一个干净的Eclipse安装上。我使用他们的更新站点手动安装了必要的依赖项(GEF和Zest)。但是,该插件仍然不显示。我google了很多,发现一个网站建议我用-debug -consoleLog打开eclipse,并显示以下内容:



编辑:这是我整个日志的截图:



PowerPlugin是我的自定义插件。

我已经检查过,我的插件使用最小版本号指定了这些依赖关系,我已经安装了Zest 1.3.0,Draw2D 3.7.2和GEFAll-In-一个SDK 3.7.2,它应该满足这些依赖关系,我相信。



任何线索有什么问题?

解决方案

我建议只使用indigo更新网站 http://download.eclipse.org/releases/indigo 并安装所有必需的依赖项喜欢gef和zest从那里(假设你使用靛蓝作为基准?)。此更新站点(实际上现在称为软件站点或存储库)包含所有必需的依赖项,如果需要,它们将被安装。



当您使用帮助>安装新的软件... p2配置系统被使用,它将确保在开始安装任何东西之前满足所有必需的依赖关系。



[更新如下]



然后问题是使用dropin机制。我发现它非常不可靠。如果您可以使用标准p2机制(通过使用软件站点aka p2存储库)来安装插件,那将会更好:


  1. 请创建一个功能项目。

  2. 将您的插件(插件)添加到新创建的功能。

  3. 导出功能(导出向导链接在feature.xml编辑器上)。选择目录目录,然后在选项选项卡上,确保选择了生成元数据库(这将节省您创建UpdateSite项目的时间,但如果您以后想要更多的灵活性)。

  4. 在您的导出的老年人中,您应该具有:功能,插件文件夹,以及具有p2元数据的artifacts.jar和conten.jar。

  5. 在目标eclipse中,转到帮助>安装新软件。 ..然后添加...和本地...并浏览到第4点的文件夹。

  6. 您应该看到要安装在列表中的功能(如果不是,请取消选择组项按类别),然后按照向导安装您的功能。

如果要安装在同一台主机上,则运行您可以在第3点使用Install Into host Repository。



另请参见:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_features.htm


I'm trying to install my custom Eclipse plugin, which works perfectly when launched from the manifest file, onto a clean installation of Eclipse. I've installed the necessary dependencies (GEF and Zest) manually using their update sites. However, the plugin still doesn't show up. I googled around a lot and found a site suggesting I open eclipse with -debug -consoleLog and revealed the following:

Edit: here's a screenshot of my entire log:

"PowerPlugin" is my custom plugin.

I've checked, and my plugin specifies these dependencies with a minimum version number, and I have installed Zest 1.3.0, Draw2D 3.7.2, and the GEF "All-In-One" SDK 3.7.2, which should satisfy these dependencies, I believe.

Any clue what's wrong?

解决方案

I would suggest using just indigo update site http://download.eclipse.org/releases/indigo and installing all required dependencies like gef and zest from there (assuming that you use indigo as a baseline?). This update site (actually it is now called a "software site" or repository) contains all required dependencies and they will be installed if needed.

When you using Help>Install new software... p2 provisioning system is used and it will make sure that all required dependencies are satisfied before it starts installing anything.

[Updated bellow]

The problem then is with a dropin mechanism. I found it very unreliable. Would be much better if you could install your plug-in using the standard p2 mechanism (by using software site aka p2 repository) that is:

  1. Please create a feature project.
  2. Add your plug-in (plug-ins) to the newly created feature.
  3. Export the feature ("Export Wizard" link on feature.xml editor). Choose directory destination and on Options tab make sure that "Generate Metadata Repository" is selected (this will spare you the time to create UpdateSite project although you could do that if you want more flexibility later).
  4. In your exported forlder your should have: feature, plugins folders and also artifacts.jar and conten.jar with p2 metadata.
  5. In your destination eclipse go to Help>Install New Software... then Add... and Local... and browse to the folder from point 4.
  6. You should see the feature to install in the list (if not please deselect "Group items by category") and then follow the wizard to install your featrue.

If you want to install on the same host you are running then you can use "Install Into host Repository" in point 3.

See also: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_features.htm

这篇关于在干净的Eclipse上安装自定义插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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