Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Upgrade 0.20 -> 0.21 (or 0.22-SNAPSHOT) fails running surefire-plugin

Hi 

We are using tycho as our build system and are quite happy with them.

When I tried to upgrade to from 0.20 to 0.21 (because I want to switch
to Java8) I ran into troubles that running the surefire tests do not work 
anymore.

When running mvn clean compile install I get the following error
> [INFO] --- tycho-surefire-plugin:0.22.0-SNAPSHOT:test (default-test) @
> ch.rgw.utility.tests --- [INFO] Expected eclipse log file:
> /tmp/elexis-3-core/ch.rgw.utility.tests/target/work/data/.metadata/.log> 
> [INFO] Command line:
> 	[/usr/lib/jvm/jdk-8-oracle-x64/jre/bin/java, -Dosgi.noShutdown=false,
> 	-Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -Dosgi.clean=true,
> 	-jar,
> 	
/home/niklaus/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1
> 	
.3.0.v20120522-1813/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar,
> 	-data, /tmp/elexis-3-core/ch.rgw.utility.tests/target/work/data, -
install,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/work, -configuration,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/work/configuration,
> 	-application, org.eclipse.tycho.surefire.osgibooter.uitest,
> 	-testproperties,
> 	/tmp/elexis-3-core/ch.rgw.utility.tests/target/surefire.properties]> 
> -------------------------------------------------------
> 
>  T E S T S
> 
> -------------------------------------------------------
> java.lang.RuntimeException: Bundle ch.rgw.utility.tests is not found
> 
> 	at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoa
> 	der(OsgiSurefireBooter.java:162) at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.createCombinedCla
> 	ssLoader(OsgiSurefireBooter.java:98) at
> 	
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireB
> 	ooter.java:91) at
> 	
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(Abst
> 	ractUITestApplication.java:35)

I just don't understand why it does not find its own bundle (a test fragment)  
ch.rgw.utility.tests

Code can be found at https://github.com/ngiger/elexis-3-core/tree/java8

I tried (as suggested by 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617c) to use 
extraDependencies but it did not help.

Best regards

Niklaus



Back to the top