如何在Tycho版本中使用包含第三方捆绑软件的目录 [英] How to use directory containing third party bundles in a Tycho build

查看:87
本文介绍了如何在Tycho版本中使用包含第三方捆绑软件的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去,我们在文件系统上拥有捆绑包和功能部件,并通过具有目录"位置的目标定义文件使它们在Eclipse中可用.这样,可以很容易地将它们与Eclipse中的导出"向导一起使用.

In the past, we had our bundles and features on the file system and made them available in Eclipse through a target definition file with a 'Directory' location. In this way, it was easy to use them with the Export wizards in Eclipse.

现在我正在尝试使用具有第三方依赖性的Tycho构建eclipse-plugin. javax.vecmath org.apache.commons.math .

Now I'm trying to build an eclipse-plugin with Tycho which has third party dependencies, e.g. javax.vecmath and org.apache.commons.math.

据我所知,在Tycho构建中获取依赖项的最佳方法是通过p2存储库.因此,我将其中一个用于Eclipse捆绑包.但是对于我的第三方捆绑包,似乎没有可用的p2存储库.

From what I know, the best way to obtain the dependencies in a Tycho build is through a p2 repository. So I'm using one for the Eclipse bundles. But for my third-party bundles, it seems that there is no p2 repository available.

所以我的问题是:如何轻松地将JAR(vecmath,commons-math)放入p2存储库?

So my question is: How do I easily get the JARs (vecmath, commons-math) into a p2 repository?

我以为可以用Tycho构建p2存储库,但是当我无法访问Tycho中的第三方捆绑软件时该怎么做?我尝试使用目标定义,但是Tycho仅支持指向p2存储库的链接,而不支持目录或安装.那么,还有其他方法可以在Maven/Tycho构建中使用我的第三方依赖吗?

I thought I could build a p2 repository with Tycho, but how to do this when I can't access the third-party bundles in Tycho? I tried to use a target definition, but Tycho only supports links to p2 repositories, and not directories or installations. So are there other ways to use my third-party dependencies in a Maven/Tycho build?

推荐答案

根据您的问题,第三方依赖项已经捆绑在一起.这很好–剩下要做的就是为分发包生成p2元数据.

According to your question, the third party dependencies are already bundles. This is good – all that is left to do is to generate p2 metadata for the bundles.

可以通过功能和捆绑发布商应用程序轻松完成此操作.结果是一个p2存储库.显然,您不希望所有开发人员都必须在本地执行此操作才能运行Tycho构建,因此您应将发布者应用程序的结果放到Web服务器上.然后,通过项目目标文件中的http URL引用捆绑软件.

This can be done easily through the Features and Bundles Publisher application. The result is a p2 repository. Obviously, you don't want that all your developers have to do this locally in order to run the Tycho build, so you should put the result of the publisher application onto a web server. Then, reference the bundles via an http URL in the target file of your project.

这篇关于如何在Tycho版本中使用包含第三方捆绑软件的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆