Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Cannot use JavaSE1.8 from test plugin

Hello all

I have a test plugin which contain "UI system tests" so as a result it requires the entire product to run the tests.
The pom.xml have the following content (partially)


                            <!-- add dependency to product IU under test -->

Tests run as expected when JavaSE1.6 is referenced from plugin's MANIFEST.MF and .classpath however when JavaSE 1.7 or 1.8 is used the build fails with the following message:

[INFO] Installing IUs [com.movidius.systests, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4, MyProduct] to C:\WS\trunk\trunkEclipse\systests\plugins\com.sample.systests\target\work
Installing com.sample.systests
Installing org.eclipse.tycho.surefire.osgibooter 0.23.1.
Installing org.eclipse.tycho.surefire.junit4 0.23.1.
Installing MyProduct
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: MyProductProduct (MyProduct
 Missing requirement: MyProductProduct (MyProduct requires 'a.jre.javase [1.6.0]' but it could not be found

I have other test plugins which does not use <type>p2-installable-unit</type> and are marked with JavaSE1.8 and they run correctly.

My product definition have the following content:

      <feature id="org.eclipse.rcp"/>
      <feature id="org.eclipse.rcp.configuration"/>
      <feature id="org.eclipse.platform"/>
      <feature id="org.eclipse.equinox.p2.user.ui"/>

I suspect a bug in Tycho but maybe not...
Any advice?

Robert Kiss

Back to the top