Situation
mvn install从命令行构建的。问题
就在不久前,这个建筑还能正常工作。所有依赖项都已正确解析和获取。
现在,Tycho OSGi依赖项解析器开始为X版的平台插件添加依赖项,而该插件的开普勒版本是Y版。
例如:
生成的Maven输出如下:
[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依赖解析器在哪里找到这些非开普勒版本?
发布于 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。)
https://stackoverflow.com/questions/19294153
复制相似问题