Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Missing requirement: Demo 1.0.0.201604071426 (demo 1.0.0.201604071426) requires 'config.a.jre.javase [1.6.0]' but it could not be found

Hi,

i try to run tycho surefire tests against a product
(using java 8)

i get the following error.

why is in the metadata of the product java 6 and exact java 6
and how can i avoid this issue

Thanks 
Christian

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>

<groupId>org.xtext.example.demodsl</groupId>

<artifactId>org.xtext.example.demodsl.parent</artifactId>

<version>1.0.0-SNAPSHOT</version>

<relativePath>../org.xtext.example.demodsl.parent</relativePath>

</parent>

<artifactId>org.xtext.example.demodsl.product.tests</artifactId>

<packaging>eclipse-test-plugin</packaging>


<build>

<plugins>

<plugin>

<groupId>org.eclipse.xtend</groupId>

<artifactId>xtend-maven-plugin</artifactId>

</plugin>


<!-- <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> 

<version>${tycho-version}</version> <configuration> <failIfNoTests>true</failIfNoTests> 

<useUIHarness>true</useUIHarness> <useUIThread>false</useUIThread> <product>demo</product> 

<testRuntime>p2Installed</testRuntime> <work>${project.directory}/../org.xtext.example.demodsl.product/target/products/demo</work> 

</configuration> </plugin> -->




<plugin>

<groupId>org.eclipse.tycho</groupId>

<artifactId>tycho-surefire-plugin</artifactId>

<version>${tycho-version}</version>

<configuration>

<testRuntime>p2Installed</testRuntime>

<useJDK>BREE</useJDK>

</configuration>

</plugin>

<plugin>

<groupId>org.eclipse.tycho</groupId>

<artifactId>target-platform-configuration</artifactId>

<version>${tycho-version}</version>

<configuration>

<pomDependencies>consider</pomDependencies>

<dependency-resolution>

<extraRequirements>

<!-- product IU under test -->

<requirement>

<id>demo</id>

               <versionRange>0.0.0</versionRange>

<type>p2-installable-unit</type>

</requirement>

</extraRequirements>

</dependency-resolution>

</configuration>

</plugin>

</plugins>

</build>


<dependencies>

<dependency>

<artifactId>org.xtext.example.demodsl.product</artifactId>

<groupId>org.xtext.example.demodsl</groupId>

<version>${project.version}</version>

<type>pom</type>

</dependency>

</dependencies>

</project>


[INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @ org.xtext.example.demodsl.product.tests ---
[INFO] Publishing 2 bundles to /Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles
[INFO] Command line:
[/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/bin/java, -jar, /Users/dietrich/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.24.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar, -configuration, /var/folders/8p/hn2kg3912jzd3h3r9n6j6mfm0000gn/T/tycho-p2-runtime6047379064234184988.tmp/configuration, -nosplash, -application, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, -artifactRepository, file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles/, -metadataRepository, file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles/, -compress, -publishArtifacts, -source, /Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles]
Generating metadata for ..
Generation completed with success [0 seconds].
[INFO] Installing IUs [org.xtext.example.demodsl.product.tests, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4, demo] to /Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/work
Installing org.xtext.example.demodsl.product.tests 1.0.0.201604071432.
Installing org.eclipse.tycho.surefire.osgibooter 0.24.0.
Installing org.eclipse.tycho.surefire.junit4 0.24.0.
Installing demo 1.0.0.201604071426.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: Demo 1.0.0.201604071426 (demo 1.0.0.201604071426)
 Missing requirement: Demo 1.0.0.201604071426 (demo 1.0.0.201604071426) requires 'config.a.jre.javase [1.6.0]' but it could not be found
Application failed, log file location: /private/var/folders/8p/hn2kg3912jzd3h3r9n6j6mfm0000gn/T/tycho4702638794095350736equinox/config/1460039519133.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.340 s
[INFO] Finished at: 2016-04-07T16:32:21+02:00
[INFO] Final Memory: 83M/730M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.24.0:test (default-test) on project org.xtext.example.demodsl.product.tests: Installation of IUs [org.xtext.example.demodsl.product.tests, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4, demo] failed: Call to p2 director application failed with exit code 13. Program arguments were: [-metadataRepository, file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/,file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/targetPlatformRepository/,file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles/, -artifactRepository, file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/,file:/resolution-context-artifacts@/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests,file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/,file:/Users/dietrich/.m2/repository/,file:/Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/p2temp/additionalBundles/, -installIU, org.xtext.example.demodsl.product.tests,org.eclipse.tycho.surefire.osgibooter,org.eclipse.tycho.surefire.junit4,demo, -destination, /Users/dietrich/Documents/workspace284abc_22/org.xtext.example.demodsl.product.tests/target/work, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, macosx, -p2.ws, cocoa, -p2.arch, x86_64]. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

--
Christian Dietrich (Diplom-Informatiker (BA))
Softwareentwickler / -Architekt

Tel.: +49 (0) 711 / 34 21 91-0
Fax.: +49 (0) 711 / 34 21 91-29
Mobil: +49 (0) 151 / 173969 17
Mail: christian.dietrich@xxxxxxxxx
XING: https://www.xing.com/profile/Christian_Dietrich8
Web: http://www.itemis.de
Skype: christiandietrich1982
ICQ: 125801794

itemis AG
Niederlassung Süd
Industriestraße 6
70565 Stuttgart

Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621 | Sitz der Gesellschaft: Lünen
Vorstand: Jens Wagener (Vorsitzender) | Wolfgang Neuhaus | Dr. Georg Pietrek | Jens Trompeter | Sebastian Neus
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.) | Michael Neuhaus | Jennifer Fiorentino


Back to the top