1

Eclipse Tycho を利用して、GMF の依存関係を持つ RCP アプリケーションを構築しています。

次のエラーが表示されます -

[ERROR] Internal error: java.lang.RuntimeException: Could not download artifacts from any repository
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.emf.core,1.4.1.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.emf.commands.core,1.4.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.emf.ui.properties,1.5.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui,1.6.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.properties,1.4.2.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.providers,1.5.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.providers.ide,1.2.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.render,1.6.0.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.resources.editor,1.4.1.v20120514-1615
[ERROR] osgi.bundle,org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide,1.2.1.v20120514-1615

Manifest.MF で次の依存関係を指定しています -

org.eclipse.gmf.runtime.emf.core;bundle-version="1.4.1",
 org.eclipse.gmf.runtime.emf.commands.core;bundle-version="1.4.0",
 org.eclipse.gmf.runtime.emf.ui.properties;bundle-version="1.5.0",
 org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.6.0",
 org.eclipse.gmf.runtime.diagram.ui.properties;bundle-version="1.4.2",
 org.eclipse.gmf.runtime.diagram.ui.providers;bundle-version="1.5.0",
 org.eclipse.gmf.runtime.diagram.ui.providers.ide;bundle-version="1.2.0",
 org.eclipse.gmf.runtime.diagram.ui.render;bundle-version="1.6.0",
 org.eclipse.gmf.runtime.lite.svg;bundle-version="1.0.0",
 org.eclipse.gmf.runtime.diagram.ui.resources.editor;bundle-version="1.4.1",
 org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide;bundle-version="1.2.1",

GMF バンドルのリポジトリの場所を次のように指定しました -

<repository>
  <id>gmf-runtime</id>
  <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/releases</url>
  <layout>p2</layout>
</repository>

P2 リポジトリには、上記のすべての JAR があります。唯一の違いは、何らかの理由で Tycho が.v20120514-1615修飾子を探していることです。ただし、P2 リポジトリには.201302191707修飾子があります。Tycho がその特定の修飾子を探していて、最新バージョンに解決されない理由がわかりません。

4

1 に答える 1

2

元の P2 Repo が破損していたようです。問題は、プラグインが参照されていない場合でも、Tycho が P2 リポジトリ全体のインデックスを作成しようとすることです。これを解決するためにしたことは -

  1. .product ファイルを開き、製品をエクスポートします
  2. エクスポートされた製品アーティファクトから「リポジトリ」フォルダーをコピーし、共有の場所に配置します
  3. 外部リポジトリの場合は、Maven pom.xml のタグで、代わりにこのリポジトリの場所を指定します。今後の Tycho ビルドはすべてこのリポジトリを使用します

これにより、リポジトリのサイズが小さくなり、ビルドの問題がすべて解決されます。

于 2013-05-07T08:14:58.373 に答える