本文介绍了如何导出具有依赖关系的Eclipse插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我已经开始编辑现有的插件了。因此它有依赖关系。我想把这个插件放在另一个eclipse IDE(而不是我当前的)中。这个eclipse IDE将不会安装依赖的插件jars。现在我正在使用droppins文件夹,但是这并不能解决并安装我需要的依赖项。那么我将这个插件安装到另一个eclipse IDE中最好的方法是什么?作为一个完整的包/简单的一次性步骤。

So I have begun to edit an existing plugin. As such it has dependencies. I want to take this plugin and put it into another eclipse IDE (not my current one). This eclipse IDE will not have the dependent plugin jars installed. Right now I am using the droppins folder, however this does not reach out and install the dependencies I need. So what is the best way for me to install this plugin into another eclipse IDE? And as a complete package/simple onetime step.

推荐答案

使用 / dropins 是它不执行依赖关系解析来查找并包含所有必需的依赖关系。相反,您需要通过p2(Eclipse的软件包安装基础架构)进行安装 - 在Eclipse中,当您选择帮助> 安装新软件...

The problem with using /dropins is that it does not perform dependency resolution to find and include all required dependencies. Instead, you'll want to install via p2 (Eclipse's package installation infrastructure) - in Eclipse it's what you get when you select Help > Install New Software...


  • 创建一个功能项目以包含您的插件,在功能中包含您的插件。在功能编辑器的依赖关系选项卡上,使用Compute按钮来声明插件所需的依赖关系(如果愿意,请手动添加)。

  • 创建一个更新站点项目为您的功能。包括您的功能,构建站点(右键单击 site.xml 文件),然后使用帮助> 安装新软件... 选择本地更新站点并从中安装。

  • Create a Feature Project to contain your plugin, include your plugin in the Feature. On the Dependencies tab of the Feature editor, use the Compute button to declare the dependencies your plugin requires (or manually add them if you prefer).
  • Create an Update Site Project for your Feature. Include your Feature, build the site (right-click on the site.xml file), and then use Help > Install New Software... to select the local update site and installing from that.

Eclipse帮助内容可以解释更多关于所有这是一个非常简单的过程。

The Eclipse Help Contents can explain more about all of this, but it's a pretty straightforward process.

这篇关于如何导出具有依赖关系的Eclipse插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 00:47