次のような状況があります: 別のバンドル (いくつかの jar を含む) を実行する必要がある eclipse rcp プロジェクト。Eclipseから起動すると、これは非常にうまく動作します。ここで、maven と tychoを使用して実行可能な jar を作成したいと考えています(これは非常に重要です)。
Eclipse rcp プロジェクトの pom.xml は次のようになります。
<properties>
<tycho-version>0.16.0</tycho-version>
</properties>
<repositories>
<repository>
<id>helios</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/helios</url>
</repository>
<repository>
<id>galileoTest</id>
<layout>p2</layout>
<url>http://download.eclipse.org/eclipse/updates/3.6-JUnit-Tests/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
ビルド プロセスは「成功」しましたが、結果として得られる jar はわずか 74kb (15mb 以上である必要があります) であり、実行可能ではありません (メイン クラスが見つかりません)。