I found this commit http://mail-archives.apache.org/mod_mbox/maven-commits/201212.mbox/%3C20121206180221.B7CA5819B18@tyr.zones.apache.org%3E, and the method RunResult#getFailsafe may return null if everything is OK. This may be a problem, because this null may be returned from the run method here: return new Integer(OsgiSurefireBooter.run(args)); and cause npe.
This is the patch (for the future use). --- tycho-0.16.x/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java.bak 2013-02-23 21:21:16.000000000 +0100 +++ tycho-0.16.x/tycho-surefire/org.eclipse.tycho.surefire.osgibooter/src/main/java/org/eclipse/tycho/surefire/osgibooter/OsgiSurefireBooter.java 2013-02-23 21:33:27.638911936 +0100 @@ -89,7 +89,7 @@ RunResult result = ProviderFactory.invokeProvider(null, testClassLoader, surefireClassLoader, createReporterFactory(startupReportConfig), providerConfiguration, false, startupConfiguration, true); - return result.getFailsafeCode(); + return result.getFailsafeCode() == null ? 0 : result.getFailsafeCode(); } private static ReporterFactory createReporterFactory(StartupReportConfiguration startupReportConfig) {
Thanks for committing this (http://pkgs.fedoraproject.org/cgit/tycho.git/diff/tycho-fix-surefire-api-change.patch?id=50c3427c3ecc596af5afd24c094525b61a0ffda8). It looks like we won't need to fix this in f18 as it's making use of the 2.12.4 API. Marking as closed (rawhide).