Mirroring p2 update sites selectively

时间:2015-06-30 13:40:28

标签: java maven tycho mirror p2

I have a functioning Tycho build process that has multiple p2 update-sites as repositories specified. I am now required to move my build to a CI-Server that has no access to those repositories (due to proxy configurations beyond my control). The only possibility is to specify local repositories.

Mirroring all update sites is way to much for this build and takes too much time: Some of the specified repositories are quite big, for example the Eclipse Luna release update site.

I wondered if I can tell Tycho to create a "selective" mirror of all update sites, i.e. a mirror containing only the IUs that I need for the build.

2 个答案:

答案 0 :(得分:1)

您可以使用tycho mirror goal

创建远程p2存储库的(部分)本地镜像

您还可以将此本地镜像存储库作为zip链接部署到nexus,并使用Nexus unzip plugin为来自Nexus的p2存储库提供服务。

答案 1 :(得分:0)

在maven设置文件中,您可以指定要使用的特定镜像。我怀疑你最好的选择是使用本地nexus实例并将所需的依赖项添加到其中。 您应该能够使用mvn deploy插件从您所有p2站点构建的本地maven存储库进行部署。