How to build a feature to a zip file using Tycho

谁说胖子不能爱 提交于 2019-12-02 10:52:58

问题


I'm trying to export an Eclipse feature using Tycho, replacing the "Export Wizard" found on the Eclipse overview of the feature. The wizard gives the option for the export destination as a zip file. Is there a way to do the same with Tycho?


回答1:


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:

  • Add an eclipse-repository module with the same parent POM as the eclipse-feature module (in order to inherit the same target platform configuration).
  • Create a category.xml file in the root of the new module with the following content:

    <?xml version="1.0" encoding="UTF-8"?>
    <site>
        <feature id="todo.your.feature.id" />
    </site>
    
  • Add the new module to your root POM.



来源:https://stackoverflow.com/questions/20377991/how-to-build-a-feature-to-a-zip-file-using-tycho

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!