tycho-surefire-pluginでJUnit テストを実行すると、tycho は分点ランタイムをフォークします。まれに、OSGi テスト ランタイムの一部のバンドルを解決/開始できないことがあります (たとえば、パッケージが競合を使用しています)。デバッグ ログ (maven CLI オプション-X
) を読むと、次のようなものが見つかります。
!ENTRY org.eclipse.osgi 2 0 2012-10-08 16:41:31.635
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-08 16:41:31.635
An error has occurred. See the log file
C:\mytestproject.tests\target\work\configuration\1349705136008.log.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:03.181s
[INFO] Finished at: Mon Oct 08 16:17:16 CEST 2012
[INFO] Final Memory: 20M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.15.0:test (default-test) on project mytestproject.tests: An unexpected error occured (return c
ode 13). See log for details. -> [Help 1]
パッケージで競合が使用されている場合、Eclipse コンソール ログは十分な情報を提供しません。
tycho によってフォークされた OSGi テスト ランタイムのバンドルを分析するにはどうすればよいですか?