首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tycho:依赖解析器使用Eclipse插件的版本,这些插件不能通过Eclipse代理从Eclipse存储库中获取。

Tycho:依赖解析器使用Eclipse插件的版本,这些插件不能通过Eclipse代理从Eclipse存储库中获取。
EN

Stack Overflow用户
提问于 2013-10-10 11:09:30
回答 1查看 1.3K关注 0票数 1

Situation

  • 我有一个使用Tycho用maven构建的Eclipse应用程序。
  • 应用程序是使用一个简单的mvn install从命令行构建的。
  • 在构建过程中,p2依赖项从Nexus代理存储库中检索,该存储库镜像Eclipse的开普勒存储库。

问题

就在不久前,这个建筑还能正常工作。所有依赖项都已正确解析和获取。

现在,Tycho OSGi依赖项解析器开始为X版的平台插件添加依赖项,而该插件的开普勒版本是Y版。

例如:

  • 开普勒版本: org.eclipse.emf.ecore.xmi_2.9.0.v20130528-0742
  • org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309依赖关系: OSGi依赖

生成的Maven输出如下:

代码语言:javascript
复制
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: com.mycompany.products.myproduct:myproduct.gui.build:1.8.17-SNAPSHOT @ /home/myusername/programming/myproduct/gui/product-gui-1.8.x/gui/myproduct.gui.build/pom.xml
[INFO] Adding repository http://nexus.buildnet.mycompany.com/nexus/content/repositories/myproduct-releases/.meta/p2
[INFO] Adding repository http://nexus.buildnet.mycompany.com/nexus/content/repositories/myproduct-snapshots/.meta/p2
[INFO] Adding repository http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler
[INFO] Resolving dependencies of MavenProject: com.mycompany.products.myproduct:myproduct.gui.build:1.8.17-SNAPSHOT @ /home/myusername/programming/myproduct/gui/product-gui-1.8.x/gui/myproduct.gui.build/pom.xml
[INFO] Downloading org.eclipse.core.runtime
[INFO] Fetching org.eclipse.core.runtime_3.9.0.v20130326-1255.jar.pack.gz from http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/ (0B of 31.5kB at 0B/s)
[INFO] Fetching org.eclipse.core.runtime_3.9.0.v20130326-1255.jar.pack.gz from http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/ (4kB of 31.5kB at 0B/s)
[INFO] 1 operation remaining.
[INFO] Downloading org.eclipse.emf.ecore.xmi
[INFO] Downloading org.eclipse.ui.workbench
[INFO] Downloading org.eclipse.jface
...
<many are downloaded correctly>
...
[INFO] Downloading org.eclipse.rcp_root
[INFO] Downloading org.eclipse.swt.gtk.linux.x86
[ERROR] Internal error: java.lang.RuntimeException: "Messages while reading artifacts from child repositories": ["Problems while reading artifacts from http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler": ["Artifact not found: http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar.", "Artifact not found: http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/org.eclipse.ui.workbench_3.105.1.v20130821-1411.jar.", "Artifact not found: http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/org.eclipse.jface_3.9.1.v20130725-1141.jar.", "Artifact not found: http://nexus.buildnet.mycompany.com/nexus/content/repositories/eclipse-kepler/plugins/org.eclipse.core.resources_3.8.101.v20130717-0806.jar.",............]] -> [Help 1]

问题

Tycho如何选择依赖版本?我读到了这里,我只需要将开普勒存储库添加到我的项目中,以便将Tycho与开普勒目标平台相匹配。

Tycho如何选择似乎没有存储在开普勒存储库中的版本。Tycho依赖解析器在哪里找到这些非开普勒版本?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-14 08:02:40

正如greg-449所指出的,开普勒服务第1版最近被添加到开普勒p2存储库http://download.eclipse.org/releases/kepler/中。因此,org.eclipse.emf.ecore.xmi等的新版本实际上是开普勒存储库的一部分。

Tycho无法下载新版本的工件这一事实似乎是Nexus p2存储库代理设置中的一个问题。工件org.eclipse.emf.ecore.xmi_2.9.1.v20130827-0309.jar可以在原始存储库中使用(根据p2索引和物理性,两者都是逻辑上的)。根据我的经验,Nexus p2存储库代理不能可靠地与复合p2存储库(比如开普勒)一起工作。

可以选择只使用6月发行版的开普勒:只需将开普勒p2存储库URL替换为http://download.eclipse.org/releases/kepler/201306260900/即可。这个p2存储库是构成整个开普勒存储库的子存储库之一。(要查看开普勒存储库中的所有子存储库,请查看存储库的compositeContent.jar。)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19294153

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档