【问题标题】:Source feature generated by Tycho is not being included in p2 repositoryTycho 生成的源特性未包含在 p2 存储库中
【发布时间】:2019-01-06 23:13:16
【问题描述】:

我正在尝试在生成的 p2 存储库中创建并包含我的插件的源功能。目前,每个插件的源 jars 都会被创建,每个普通特性的源特性也是如此。但是,这些源特性不会包含在最终产品中,即 Eclipse 更新站点。

在我的父 POM 中,我有

        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-source-plugin</artifactId>
            <executions>
                <execution>
                    <id>plugin-source</id>
                    <goals>
                        <goal>plugin-source</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.eclipse.tycho.extras</groupId>
            <artifactId>tycho-source-feature-plugin</artifactId>
            <version>${tycho.version}</version>
            <executions>
                <execution>
                    <id>source-feature</id>
                    <phase>package</phase>
                    <goals>
                        <goal>source-feature</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.eclipse.tycho</groupId>
            <artifactId>tycho-p2-plugin</artifactId>
            <version>${tycho.version}</version>
            <executions>
                <execution>
                    <id>attach-p2-metadata</id>
                    <phase>package</phase>
                    <goals>
                        <goal>p2-metadata</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

我需要在功能的 POM 中添加一些内容吗? eclipse-repository 的?我没有想法。

【问题讨论】:

  • 您是否尝试将它们添加到插件的build.properties 文件中的bin.includes 变量中? (例如bin.includes=already_included_folder/,\ already_included_file,\ the_folder_i_want_in_final_product/

标签: maven eclipse-plugin pom.xml tycho p2


【解决方案1】:

我自己来回答。感谢this article,我找到了解决方案。

我必须将生成的源功能添加到描述我的更新站点的 category.xml。

我之前尝试过,但没有成功,因为我犯了写 *.source.feature 而不是 *.feature.source 的错误。

【讨论】:

    猜你喜欢
    • 2016-05-22
    • 2019-12-13
    • 2018-08-14
    • 2016-09-29
    • 2018-10-25
    • 2013-11-29
    • 2019-11-15
    • 2011-02-24
    • 1970-01-01
    相关资源
    最近更新 更多