简体   繁体   English

如何使用Tycho将功能构建到zip文件中

[英]How to build a feature to a zip file using Tycho

I'm trying to export an Eclipse feature using Tycho, replacing the "Export Wizard" found on the Eclipse overview of the feature. 我正在尝试使用Tycho导出Eclipse功能,替换在功能概述中找到的“导出向导”。 The wizard gives the option for the export destination as a zip file. 该向导为导出目标提供了一个zip文件选项。 Is there a way to do the same with Tycho? 有没有办法对第谷做同样的事情?

In order to build a zip file with the feature and the feature's plug-ins, you need to add a module of the assembly packaging type eclipse-repository to your reactor: 为了使用该功能部件和该功能部件的插件构建一个zip文件,您需要向您的反应堆中添加组件包装类型为eclipse-repository的模块:

  • Add an eclipse-repository module with the same parent POM as the eclipse-feature module (in order to inherit the same target platform configuration ). 添加一个具有与eclipse-feature模块相同的父POM的eclipse-repository模块(以继承相同的目标平台配置 )。
  • Create a category.xml file in the root of the new module with the following content: 在新模块的根目录中创建具有以下内容的category.xml文件:

     <?xml version="1.0" encoding="UTF-8"?> <site> <feature id="todo.your.feature.id" /> </site> 
  • Add the new module to your root POM . 将新模块添加到您的根POM中

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

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