我正在寻找一种方法来实现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>这很好,并创建了一个镜像,但是只有很少的原始源仍然是镜像的一部分。不知何故,这不是什么也不是全部,而是一些。
如何使p2.镜像复制它所使用的jars的所有源?
我一直在阅读这个repositorytasks.htm,但我没有找到我正在寻找的线索。
谢谢你们,妮可
PS。为了澄清,destinationFolder包含一个R 2020-09镜像,没有任何切片。这也是我看到消息来源的地方。他们似乎在切片的步骤中迷失了方向。
发布于 2021-01-25 21:46:36
对于上述三个功能安装单元,有相应的源安装单元:
<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" />您可以考虑在Tycho的tycho-p2-临时演员:镜子中使用Maven,而不是Ant (参见举个例子)。
https://stackoverflow.com/questions/65886881
复制相似问题