Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Tycho Surefire and p2Installed products

Greetings,

I'm trying to install a product for running tests with Tycho Surefire. For some reason, it failes with a weird p2 error.


Cannot complete the install because one or more required items could not be found. Software being installed: Gyrex Server Product 1.5.0.v20150605-1321 (org.eclipse.gyrex.products.server 1.5.0.v20150605-1321) Missing requirement: Gyrex Server Product 1.5.0.v20150605-1321 (org.eclipse.gyrex.products.server 1.5.0.v20150605-1321) requires 'config.a.jre.javase [1.6.0]' but it could not be found


Here is the pom snippet:

<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
 <testRuntime>p2Installed</testRuntime>
</configuration>
...
<artifactId>target-platform-configuration</artifactId>
<configuration>
 <environments>
   ...
 </environments>
 <dependency-resolution>
   <extraRequirements>
     <requirement>
       <type>p2-installable-unit</type>
       <id>org.eclipse.gyrex.products.server</id>
       <versionRange>0.0.0</versionRange>
     </requirement>
   </extraRequirements>
 </dependency-resolution>
</configuration>


I'm using a locally built repository as input. I've verified that its content.xml/jar actually contains the missing IU. Thus, it's in the repository.

<repositories>
 <repository>
   <id>locally-build-gyrex-product-repository</id>
   <url>${project.baseUri}../../repository/target/repository</url>
   <layout>p2</layout>
 </repository>
 <repository>
   <id>orbit</id>
<url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150519210750/repository/</url>
   <layout>p2</layout>
 </repository>
</repositories>


Any ideas what could be wrong?


Here is some more log output:
[INFO] --- tycho-surefire-plugin:0.23.0-SNAPSHOT:test (default-test) @ org.eclipse.gyrex.releng.repository.test --- [INFO] Publishing 2 bundles to /myhome/Development/gyrex/gyrex-server/releng/repository-test/testbundle/target/p2temp/additionalBundles
[INFO] Command line:

[/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/bin/java, -jar, /myhome/.m2/repo-gyrex/org/eclipse/tycho/tycho-bundles-external/0.23.0-SNAPSHOT/eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar, -configuration, /var/folders/x4/fk7_jgmx7gs4mznhm3mqrhcr0000gn/T/tycho-p2-runtime6274799132275425590.tmp/configuration, -nosplash, -application, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, -artifactRepository, file:/myhome/Development/gyrex/gyrex-server/releng/repository-test/testbundle/target/p2temp/additionalBundles/, -metadataRepository, file:/myhome/Development/gyrex/gyrex-server/releng/repository-test/testbundle/target/p2temp/additionalBundles/, -compress, -publishArtifacts, -source, /myhome/Development/gyrex/gyrex-server/releng/repository-test/testbundle/target/p2temp/additionalBundles]
Generating metadata for ..
Generation completed with success [0 seconds].
[INFO] Installing IUs [org.eclipse.gyrex.releng.repository.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4, org.eclipse.gyrex.products.server] to /myhome/Development/gyrex/gyrex-server/releng/repository-test/testbundle/target/work
Installing org.eclipse.gyrex.releng.repository.test 1.0.0.201506051653.
Installing org.eclipse.tycho.surefire.osgibooter 0.23.0.201505271316.
Installing org.eclipse.tycho.surefire.junit4 0.23.0.201505271316.
Installing org.eclipse.gyrex.products.server 1.5.0.v20150605-1321.
Installation failed.
Cannot complete the install because one or more required items could not be found. Software being installed: Gyrex Server Product 1.5.0.v20150605-1321 (org.eclipse.gyrex.products.server 1.5.0.v20150605-1321) Missing requirement: Gyrex Server Product 1.5.0.v20150605-1321 (org.eclipse.gyrex.products.server 1.5.0.v20150605-1321) requires 'config.a.jre.javase [1.6.0]' but it could not be found





-Gunnar


--
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx




Back to the top