【问题标题】:Eclipse p2 mirror keeping sourcesEclipse p2 镜像保留源
【发布时间】:2021-04-29 09:11:41
【问题描述】:

我正在寻找一种方法来制作 p2 存储库的镜像 - 将其减少到所需的内容并仍然保持附加源。到目前为止,我一直在尝试使用 ant 任务来镜像存储库:

<target name="R2020-09-partial" description="Reduced 2020-09 update site only containing feratures and plugins directly or indirectly references by the update site">
    <p2.mirror>
        <repository location="${destinationFolder}${ant.project.invoked-targets}" />
        <source>
            <repository location="${destinationFolder}/R2020-09" />
        </source>
        <slicingOptions followStrict="false" />
        <iu id="org.eclipse.platform.feature.group" />
        <iu id="org.eclipse.rcp.feature.group" />
        [...]
        <iu id="org.eclipse.help.feature.group" />
    </p2.mirror>
</target>

这工作正常并创建了一个镜像,但只有极少数原始资源仍然是镜像的一部分。不知何故,它不是 noneall,而只是 some

如何让 p2.mirror 复制它所需要的 jar 的 所有 源?

我一直在读这个 https://rtist.hcldoc.com/help/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_repositorytasks.htm 但我一直没能找到我要找的线索。

谢谢大家 妮可

PS。为澄清起见,destinationFolder 包含一个没有任何切片的 R2020-09 镜像。这也是我看到来源的地方。他们似乎在切片步骤中迷路了。

【问题讨论】:

    标签: eclipse-rcp p2


    【解决方案1】:

    对于上面提到的三个功能安装单元,都有对应的源安装单元:

    <iu id="org.eclipse.platform.feature.group" />
    <iu id="org.eclipse.platform.source.feature.group" />
    
    <iu id="org.eclipse.rcp.feature.group" />
    <iu id="org.eclipse.rcp.source.feature.group" />
    
    [...]
    
    <iu id="org.eclipse.help.feature.group" />
    <iu id="org.eclipse.help.source.feature.group" />
    

    您可以考虑将 Maven 与 Tycho 的 tycho-p2-extras:mirror 一起使用(请参阅 here for an example),而不是 Ant。

    【讨论】:

    • 谢谢 - 这帮助很大。我不知道有源代码功能。现在的诀窍是找到正确的特征:)
    猜你喜欢
    • 2019-12-13
    • 1970-01-01
    • 2023-02-12
    • 2022-07-20
    • 2015-09-17
    • 2020-03-02
    • 2022-11-25
    • 2021-12-21
    • 2011-09-14
    相关资源
    最近更新 更多