简体   繁体   English

将多个项目导出为一个Eclipse插件JAR

[英]Export multiple projects as one Eclipse plugin JAR

I have a multiple plugin projects : 我有多个插件项目:

  • 4 for my SDL editor. 4用于我的SDL编辑器。
  • 2 for the model-to-text integration 2用于模型到文本的集成
  • and one for creating an Eclipse wizard to my editor. 还有一个用于为我的编辑器创建Eclipse向导。

I can export the projects as plugin jars via Eclipse (Deployable Plugins and Fragments), and everything works when i restart Eclipse to integrate these plugins. 我可以通过Eclipse(可部署的插件和片段)将项目导出为插件jar,当我重新启动Eclipse以集成这些插件时,一切正常。

What i want to do is to group all these projects in one jar file, that i can install on other Eclipse machines. 我想要做的是将所有这些项目分组在一个jar文件中,我可以将其安装在其他Eclipse机器上。 Is there a simple way to do it ? 有简单的方法吗? (i am not a maven user :/ ). (我不是maven用户:/)。

Thanks. 谢谢。

If you have several related and inter-dependent plug-ins, they should be collected under a Feature . 如果您有几个相关且相互依赖的插件,则应将它们收集在Feature下 A Feature is a unit of separately downloadable and installable functionality. 功能是可单独下载和安装的功能的单位。 You can then create an Update Site to make installation of that Feature (and its plug-ins) easy. 然后,您可以创建一个更新站点,以使该功能(及其插件)的安装变得容易。

See also this answer . 另请参阅此答案

You can use a Feature project. 您可以使用功能项目。 In the feature you add all your plugins to the feature contents. 在功能中,将所有插件添加到功能内容中。

You then use 'Export > Deployable Features' to create an archive or repository containing all the plugin jars. 然后,您可以使用“导出>部署功能”创建包含所有插件jar的存档或存储库。

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

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