如何将功能和包发布到具有类别的现有p2存储库?

时间:2014-03-13 04:02:18

标签: tycho

我可以将功能和捆绑包安装到本地存在的存储库:

<plugin>
    <groupId>org.eclipse.tycho.extras</groupId>
    <artifactId>tycho-p2-extras-plugin</artifactId>
    <version>${tycho.version}</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>publish-features-and-bundles</goal>
            </goals>
            <configuration>
                <append>true</append>
                <sourceLocation>${project.build.directory}/repository</sourceLocation>
                <metadataRepositoryLocation>existingRepo</metadataRepositoryLocation>
                <artifactRepositoryLocation>existingRepo</artifactRepositoryLocation>
            </configuration>
        </execution>
    </executions>
</plugin>

效果很好。 但是,已安装的功能未在目标存储库中分类。 我该如何解决?

1 个答案:

答案 0 :(得分:0)

您需要设置一个

的Tycho构建
  • 引用您在POM中将repository作为layout = p2 repository发布,并
  • 包含一个包含eclipse-repository的模块和一个包含类别的category.xml文件。

对于此版本,您可以将所有配置放入一个pom.xml;你甚至不需要设置父POM。但是,此构建需要与调用publish-features-and-bundles目标的构建分开触发。

相关问题