Tycho无法从不同的反应堆构建中解决产品对eclipse功能的引用 [英] Tycho fails to resolve reference from product to eclipse-feature from a different reactor build

查看:152
本文介绍了Tycho无法从不同的反应堆构建中解决产品对eclipse功能的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个反应堆构建:

第一个构建一些捆绑包和一个相关功能。在成功的清洁安装之后,该功能在我本地的Maven repo中。 Tycho还生成了p2元信息... -p2artifacts.xml 和... -p2metadata.xml

The first one builds some bundles and an according feature. After a successful clean install the feature is in my local Maven repo. Tycho has also generated p2 meta information ...-p2artifacts.xml and ...-p2metadata.xml

第二个版本包含一个基于功能的产品,它引用了第一个反应器中内置的功能。尝试 clean install Tycho抱怨一个未解决的功能 - 另一个反应堆构建。

The second build contains a feature-based product which is referencing the feature built in the first reactor. When trying a clean install Tycho complains about an unresolved feature - the one of the other reactor build.


无法执行目标
org.eclipse.tycho:tycho-p2-repository-plugin:0.12.0:assemble-repository [...] [无法满足TestApp2 1.0.0的依赖关系to my.testlib.feature.feature.group [1.0.0.201109081051]。]

Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.12.0:assemble-repository [...] ["Unable to satisfy dependency from TestApp2 1.0.0 to my.testlib.feature.feature.group [1.0.0.201109081051]."]

正如你可以看到我正在使用Tycho 0.12.0,当我设置了 pomDependencies =认为标志时,应该能够解析本地maven仓库的工件。

As you can see I'm using Tycho 0.12.0 which should be able to resolve artifacts of the local maven repository when the pomDependencies=consider flag has been set, which I did.

我查看了本地maven repo生成的p2元信息,我发现功能版本有一点区别。 p2artifacts.xml中的功能版本如下:

I looked in the generated p2 meta information of my local maven repo and I found a little difference in the feature version. The version of the feature in the p2artifacts.xml is the following:


version ='1.0.0.201109071453'

version='1.0.0.201109071453'

比较两个版本

1.0.0.201109081051 // what tycho looks for
1.0.0.201109071453 // what's in my local mvn repo

只有最后一位的差异可能是时间戳。

there is only a difference in the last bit, which might be a timestamp.

有谁知道为什么tycho抱怨未解决的功能?时间戳是否重要?

Does anyone know why tycho is complaining about the unresolved feature? Does the timestamp matter?

更新:由于第二次构建的时间戳记会更改每个构建,因此我假定它是当前时间戳。

Update: Since the timestamp of the second build changes each build I assume it's the current timestamp.

推荐答案

可能您在引用.product中的功能时,使用.qualifier作为版本后缀。
.qualifier默认由构建时间戳替换,所以这可能不是你想要的。
尝试使用0.0.0(=最新)。

probably you are using ".qualifier" as version suffix when referencing the feature in your .product. ".qualifier" is replaced by the build timestamp by default, so this is probably not what you want. Try using "0.0.0" (=latest) instead.

这篇关于Tycho无法从不同的反应堆构建中解决产品对eclipse功能的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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