Addon-Tests failing in IDE & maven

  • Platform information:
    • Hardware: x86 64bit
    • OS: Win10 64bit
    • Java Runtime Environment: Oracle 1.8.0_u201 64bit
    • openHAB version:

Since some days I can’t build OH addons anymore because the tests all fail (verified with two other bindings in IDE. This is independent of the build method (mvn clean install or from IDE), happens on my checked out version (which was fine before) as well as a fresh version (commit 2688ce5c8c2335bd47e19632b1009b641cecad4b) and doesn’t change when I delete .m2 and .p2.

I’m somehow lost. Any ideas?

[INFO] --- tycho-surefire-plugin:1.2.0:test (default-test) @ org.openhab.binding.astro.test ---
[INFO] Expected eclipse log file: C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work\data\.metadata\.log
[INFO] Command line:
        [C:\Program Files\Java\jdk1.8.0_201\jre\bin\java.exe, -Dosgi.noShutdown=false, -Dosgi.os=win32, -Dosgi.ws=win32, -Dosgi.arch=x86_64, -Dosgi.clean=true, -jar, C:\Users\Jan\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.4.0.v20161219-1356\org.eclipse.equinox.launcher-1.4.0.v20161219-1356.jar, -data, C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work\data, -install, C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work, -configuration, C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work\configuration, -application, org.eclipse.tycho.surefire.osgibooter.headlesstest, -testproperties, C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\surefire.properties]
19:21:50.408 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.core.common.ThreadPoolManager - Created thread pool 'safeCall' with size 5
19:21:50.454 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.c.i.i18n.I18nProviderImpl - No language set, setting locale to 'null'.
19:21:50.454 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.c.i.i18n.I18nProviderImpl - Error setting measurement system for value 'null'.
19:21:50.495 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.core.common.ThreadPoolManager - Created scheduled thread pool 'discovery' of size 5
19:21:50.497 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Scheduled astro location-changed job every 60 seconds
19:21:50.498 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.c.d.AbstractDiscoveryService - Background discovery for discovery service 'org.openhab.binding.astro.internal.discovery.AstroDiscoveryService' enabled.
19:21:50.540 [Start Level: Equinox Container: a5635b80-8f2b-44e3-9a39-3c7864633d2f] DEBUG o.e.s.core.common.ThreadPoolManager - Created scheduled thread pool 'scheduler' of size 5
19:21:50.667 [Framework stop] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Stopping Astro device background discovery
19:21:50.668 [Framework stop] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Stopped Astro device background discovery
An error has occurred. See the log file
C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work\configuration\1550773309199.log.

and the log:

!SESSION 2019-02-21 19:21:48.719 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_201
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\surefire.properties
Command-line arguments:  -data C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\work\data -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties C:\Users\Jan\Documents\OH2-Dev\git\openhab2-addons\addons\binding\org.openhab.binding.astro.test\target\surefire.properties

!ENTRY org.openhab.binding.astro.test 2 0 2019-02-21 19:21:50.655
!MESSAGE Could not resolve module: org.openhab.binding.astro.test [43]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test
    -> Export-Package: org.eclipse.smarthome.test; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902210301"; version="2.5.0"; uses:="org.eclipse.jetty.servlet,org.osgi.framework"
       org.openhab.core.test [45]
         Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test.storage
    -> Export-Package: org.eclipse.smarthome.test.storage; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902210301"; version="2.5.0"; uses:="org.eclipse.smarthome.core.storage"


!ENTRY org.openhab.core.test 2 0 2019-02-21 19:21:50.656
!MESSAGE Could not resolve module: org.openhab.core.test [45]
  Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"


!ENTRY org.eclipse.osgi 4 0 2019-02-21 19:21:50.657
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Bundle org.openhab.binding.astro.test is not found
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:173)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.createCombinedClassLoader(OsgiSurefireBooter.java:114)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:107)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

Things will be a bit of a mess until the dust settles from all the big changes, which are still going on. When was the last time you did a Pull (or Fetch and Merge)?

That was a clean checkout from today. New directory, „git clone https://github.com/openhab/openhab2-addons.git“, that should be as recent as it gets.

Since I understood tests are disabled in Travis, I can‘t really check if my changes break something which is - not nice.

I don’t follow you… are you saying you did a fresh install, following the new instructions in the doc? Or this is an old IDE setup, and you did a Pull? Did you do a Pull for both openhab-addons and openhab-distro? If it wasn’t a fresh install, have you rerun your setup tasks (the setup file has changed)?

Actually, the UIs were moved and the setup file hasn’t been updated yet, so nothing is ready yet.

I did nearly everything:

  • re-run setup tasks
  • only delete ws and eclipse and setup new IDE
  • delete all caches (.p2, .m2) the ws and eclipse folder and kept the git-folder, setup a new IDE with openhab2-addons, openhab-distro and openhab1-addons
  • delete everything, setup a new IDE
  • delete everything, checkout only openhab2-addons, building with maven on the command-line

What is always working: building without tests (I can run from the IDE then, at least that worked two or three days ago). Also the Binding-jars work fine of used in my openhab installation.

What is never working: the tests

Do you run all projects or only your own? And do you run maven or the test launch file?

„mvn clean install“ in the root directory. But the same command or „run maven install“ for a single binding from the IDE yields the same problem. The test jar is build, the launch fails. I never tried the .launch file.

I did another test: I installed a new Ubuntu 64bit machine, latest zulu-8 java. Installed maven and git.

  1. cloned the openhab2-addons repository, mvn clean install in the root directory. Same result.
  2. installed IDE as per instructions (OpenHAB addons development, openhab1 addons), setup tasks finish (some errors in OH1-addons), Run as -> maven install works for bindings, but not for tests

In both cases the same error as above. Unfortunately I have no idea what is going wrong here.

Maybe we should port openhab2-addons to maven pom-first as well :sweat_smile:
It cannot break more that how the current situation is and I can finally have bindings and the core in one IDE again :smiley:

2 Likes

Unfortunately I have no idea how to do that :disappointed_relieved:.

[INFO] --- tycho-surefire-plugin:1.2.0:test (default-test) @ org.openhab.binding.astro.test ---
[DEBUG] Configuring mojo org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test from plugin realm ClassRealm[plugin>org.eclipse.tycho:tycho-surefire-plugin:1.2.0, parent: sun.misc.Launcher$AppClassLoader@7852e922]
[DEBUG] Configuring mojo 'org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test' with basic configurator -->
[DEBUG]   (s) id = org.eclipse.equinox.ds
[DEBUG]   (s) level = 1
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.eclipse.equinox.event
[DEBUG]   (s) level = 2
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.openhab.core
[DEBUG]   (s) level = 4
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.openhab.core.thing
[DEBUG]   (s) level = 4
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.openhab.core.config.xml
[DEBUG]   (s) level = 4
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.openhab.core.thing.xml
[DEBUG]   (s) level = 4
[DEBUG]   (s) autoStart = true
[DEBUG]   (s) id = org.openhab.core.binding.xml
[DEBUG]   (s) level = 4
[DEBUG]   (s) autoStart = true
[DEBUG]   (f) bundleStartLevel = [org.eclipse.sisu.equinox.launching.BundleStartLevel@6ce09126, org.eclipse.sisu.equinox.launching.BundleStartLevel@57a94980, org.eclipse.sisu.equinox.launching.BundleStartLevel@1beb77c7, org.eclipse.sisu.equinox.launching.BundleStartLevel@16b2397d, org.eclipse.sisu.equinox.launching.BundleStartLevel@7e33f32c, org.eclipse.sisu.equinox.launching.BundleStartLevel@63cb4023, org.eclipse.sisu.equinox.launching.BundleStartLevel@235e46d2]
[DEBUG]   (f) deleteOsgiDataDirectory = true
[DEBUG]   (s) type = eclipse-plugin
[DEBUG]   (s) artifactId = org.eclipse.equinox.ds
[DEBUG]   (s) version = 0.0.0
[DEBUG]   (s) type = eclipse-plugin
[DEBUG]   (s) artifactId = ch.qos.logback.classic
[DEBUG]   (s) version = 0.0.0
[DEBUG]   (s) type = eclipse-plugin
[DEBUG]   (s) artifactId = ch.qos.logback.core
[DEBUG]   (s) version = 0.0.0
[DEBUG]   (s) type = eclipse-plugin
[DEBUG]   (s) artifactId = ch.qos.logback.slf4j
[DEBUG]   (s) version = 0.0.0
[DEBUG]   (s) type = eclipse-plugin
[DEBUG]   (s) artifactId = org.hamcrest.core
[DEBUG]   (s) version = 0.0.0
[DEBUG]   (f) dependencies = [Dependency {groupId=null, artifactId=org.eclipse.equinox.ds, version=0.0.0, type=eclipse-plugin}, Dependency {groupId=null, artifactId=ch.qos.logback.classic, version=0.0.0, type=eclipse-plugin}, Dependency {groupId=null, artifactId=ch.qos.logback.core, version=0.0.0, type=eclipse-plugin}, Dependency {groupId=null, artifactId=ch.qos.logback.slf4j, version=0.0.0, type=eclipse-plugin}, Dependency {groupId=null, artifactId=org.hamcrest.core, version=0.0.0, type=eclipse-plugin}]
[DEBUG]   (f) failIfNoTests = false
[DEBUG]   (f) osgiDataDirectory = /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/data
[DEBUG]   (f) perCoreThreadCount = true
[DEBUG]   (f) pluginArtifacts = [org.eclipse.tycho:tycho-surefire-plugin:maven-plugin:1.2.0:, org.apache.maven:maven-plugin-api:jar:3.0:compile, org.apache.maven:maven-model:jar:3.0:compile, org.apache.maven:maven-artifact:jar:3.0:compile, org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile, org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile, org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile, org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile, org.codehaus.plexus:plexus-utils:jar:3.0.24:compile, org.apache.maven:maven-core:jar:3.0:compile, org.apache.maven:maven-settings:jar:3.0:compile, org.apache.maven:maven-settings-builder:jar:3.0:compile, org.apache.maven:maven-repository-metadata:jar:3.0:compile, org.apache.maven:maven-model-builder:jar:3.0:compile, org.apache.maven:maven-aether-provider:jar:3.0:runtime, org.sonatype.aether:aether-impl:jar:1.7:compile, org.sonatype.aether:aether-spi:jar:1.7:compile, org.sonatype.aether:aether-api:jar:1.7:compile, org.sonatype.aether:aether-util:jar:1.7:compile, org.codehaus.plexus:plexus-interpolation:jar:1.14:compile, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher:jar:1.7:compile, org.codehaus.plexus:plexus-archiver:jar:3.4:compile, org.codehaus.plexus:plexus-io:jar:2.7.1:compile, commons-io:commons-io:jar:2.5:compile, org.apache.commons:commons-compress:jar:1.15:compile, org.objenesis:objenesis:jar:2.6:compile, org.iq80.snappy:snappy:jar:0.4:compile, org.tukaani:xz:jar:1.5:runtime, org.eclipse.tycho:org.eclipse.osgi.compatibility.state:jar:1.1.100.v20180131-1413:compile, org.apache.maven:maven-compat:jar:3.0:compile, org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile, org.eclipse.tycho:sisu-equinox-launching:jar:1.2.0:compile, org.apache.commons:commons-exec:jar:1.2:compile, org.eclipse.tycho:org.eclipse.tycho.surefire.osgibooter:jar:1.2.0:runtime, org.eclipse.tycho:org.eclipse.tycho.surefire.junit:jar:1.2.0:runtime, org.eclipse.tycho:org.eclipse.tycho.surefire.junit4:jar:1.2.0:runtime, org.eclipse.tycho:org.eclipse.tycho.surefire.junit47:jar:1.2.0:runtime, org.eclipse.tycho:org.eclipse.tycho.surefire.junit5:jar:1.2.0:runtime, org.eclipse.tycho:org.eclipse.tycho.surefire.testng:jar:1.2.0:runtime, org.apache.maven.surefire:surefire-api:jar:2.19.1:compile, org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile, org.apache.maven.surefire:maven-surefire-common:jar:2.19.1:compile, org.apache.maven.surefire:surefire-booter:jar:2.19.1:compile, org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.apache.maven:maven-toolchain:jar:2.2.1:compile, org.apache.commons:commons-lang3:jar:3.1:compile]
[DEBUG]   (f) profileName = DefaultProfile
[DEBUG]   (f) project = MavenProject: org.openhab.binding:org.openhab.binding.astro.test:2.5.0-SNAPSHOT @ /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/pom.xml
[DEBUG]   (f) redirectTestOutputToFile = false
[DEBUG]   (f) reportsDirectory = /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire-reports
[DEBUG]   (f) rerunFailingTestsCount = 0
[DEBUG]   (f) runOrder = filesystem
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@76e3e98d
[DEBUG]   (f) showEclipseLog = false
[DEBUG]   (f) skipAfterFailureCount = 0
[DEBUG]   (f) surefireProperties = /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties
[DEBUG]   (f) testClassesDirectory = /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/classes
[DEBUG]   (f) testFailureIgnore = false
[DEBUG]   (f) testRuntime = default
[DEBUG]   (f) useJDK = SYSTEM
[DEBUG]   (f) useUIHarness = false
[DEBUG]   (f) useUIThread = true
[DEBUG]   (f) useUnlimitedThreads = false
[DEBUG]   (f) work = /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work
[DEBUG] -- end configuration --
[DEBUG] Using test framework provider org.eclipse.tycho.surefire.provider.impl.JUnit4Provider
[DEBUG] Installation OSGI bundles:
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/ch.qos.logback.classic/1.0.7.v20121108-1250/ch.qos.logback.classic-1.0.7.v20121108-1250.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/ch.qos.logback.core/1.0.7.v20121108-1250/ch.qos.logback.core-1.0.7.v20121108-1250.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.slf4j.api/1.7.2.v20121108-1250/org.slf4j.api-1.7.2.v20121108-1250.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/ch.qos.logback.slf4j/1.0.7.v20121108-1250/ch.qos.logback.slf4j-1.0.7.v20121108-1250.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/com.google.gson/2.8.2.v20180104-1110/com.google.gson-2.8.2.v20180104-1110.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/javax.measure.unit-api/1.0.0/javax.measure.unit-api-1.0.0.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/javax.servlet/3.1.0.v20140303-1611/javax.servlet-3.1.0.v20140303-1611.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.osgi.services/3.7.0.v20180223-1712/org.eclipse.osgi.services-3.7.0.v20180223-1712.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.apache.felix.scr/2.0.14.v20180117-1452/org.apache.felix.scr-2.0.14.v20180117-1452.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.osgi.util/3.5.0.v20180219-1511/org.eclipse.osgi.util-3.5.0.v20180219-1511.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.core.contenttype/3.7.0.v20180426-1644/org.eclipse.core.contenttype-3.7.0.v20180426-1644.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.preferences/3.7.0.v20170126-2132/org.eclipse.equinox.preferences-3.7.0.v20170126-2132.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.registry/3.7.0.v20170222-1344/org.eclipse.equinox.registry-3.7.0.v20170222-1344.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.common/3.9.0.v20170207-1454/org.eclipse.equinox.common-3.9.0.v20170207-1454.jar@2:start
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.core.jobs/3.9.0.v20170322-0013/org.eclipse.core.jobs-3.9.0.v20170322-0013.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.core.runtime/3.13.0.v20170207-1030/org.eclipse.core.runtime-3.13.0.v20170207-1030.jar@4:start
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.app/1.3.400.v20150715-1528/org.eclipse.equinox.app-1.3.400.v20150715-1528.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.ds/1.5.0.v20170307-1429/org.eclipse.equinox.ds-1.5.0.v20170307-1429.jar@1:start
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.client/9.4.11.v20180605/org.eclipse.jetty.client-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.http/9.4.11.v20180605/org.eclipse.jetty.http-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.io/9.4.11.v20180605/org.eclipse.jetty.io-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.util/9.4.11.v20180605/org.eclipse.jetty.util-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.security/9.4.11.v20180605/org.eclipse.jetty.security-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.server/9.4.11.v20180605/org.eclipse.jetty.server-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.servlet/9.4.11.v20180605/org.eclipse.jetty.servlet-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.websocket.api/9.4.11.v20180605/org.eclipse.jetty.websocket.api-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.websocket.client/9.4.11.v20180605/org.eclipse.jetty.websocket.client-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.websocket.common/9.4.11.v20180605/org.eclipse.jetty.websocket.common-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jetty.xml/9.4.11.v20180605/org.eclipse.jetty.xml-9.4.11.v20180605.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.hamcrest.core/1.3.0.v20180420-1519/org.hamcrest.core-1.3.0.v20180420-1519.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.junit/4.12.0.v201504281640/org.junit-4.12.0.v201504281640.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/mockito/mockito-core/2.13.0/mockito-core-2.13.0.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/net.bytebuddy.byte-buddy/1.7.10/net.bytebuddy.byte-buddy-1.7.10.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/net.bytebuddy.byte-buddy-agent/1.7.10/net.bytebuddy.byte-buddy-agent-1.7.10.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar
[DEBUG] 	reference:file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro/target/org.openhab.binding.astro-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.apache.commons.lang/2.6.0.v201404270220/org.apache.commons.lang-2.6.0.v201404270220.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.config.core/2.5.0-SNAPSHOT/org.openhab.core.config.core-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.config.discovery/2.5.0-SNAPSHOT/org.openhab.core.config.discovery-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core/2.5.0-SNAPSHOT/org.openhab.core-2.5.0-SNAPSHOT.jar@4:start
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.thing/2.5.0-SNAPSHOT/org.openhab.core.thing-2.5.0-SNAPSHOT.jar@4:start
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.io.net/2.5.0-SNAPSHOT/org.openhab.core.io.net-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.jdt.annotation/2.2.0.v20180417-0931/org.eclipse.jdt.annotation-2.2.0.v20180417-0931.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.test/2.5.0-SNAPSHOT/org.openhab.core.test-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/tec.uom.se/1.0.8/tec.uom.se-1.0.8.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/openhab/core/bundles/org.openhab.core.io.console/2.5.0-SNAPSHOT/org.openhab.core.io.console-2.5.0-SNAPSHOT.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.apache.commons.exec/1.1.0.v201301240602/org.apache.commons.exec-1.1.0.v201301240602.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.apache.commons.io/2.2.0.v201405211200/org.apache.commons.io-2.2.0.v201405211200.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.apache.commons.collections/3.2.0.v2013030210310/org.apache.commons.collections-3.2.0.v2013030210310.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/tec.uom.lib.uom-lib-common/1.0.2/tec.uom.lib.uom-lib-common-1.0.2.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.4.0.v20161219-1356/org.eclipse.equinox.launcher-1.4.0.v20161219-1356.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/eclipse/tycho/org.eclipse.tycho.surefire.osgibooter/1.2.0/org.eclipse.tycho.surefire.osgibooter-1.2.0.jar
[DEBUG] 	reference:file:/home/jan/.m2/repository/org/eclipse/tycho/org.eclipse.tycho.surefire.junit4/1.2.0/org.eclipse.tycho.surefire.junit4-1.2.0.jar
[INFO] Expected eclipse log file: /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/data/.metadata/.log
[INFO] Command line:
	[/usr/lib/jvm/zulu-8-amd64/jre/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -Dosgi.clean=true, -jar, /home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.4.0.v20161219-1356/org.eclipse.equinox.launcher-1.4.0.v20161219-1356.jar, -debug, -consolelog, -data, /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/data, -install, /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work, -configuration, /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.headlesstest, -testproperties, /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties]
Configuration location:
    file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/configuration/
Configuration file:
    file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/configuration/config.ini loaded
Install location:
    file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/
Framework located:
    file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.osgi/3.12.0.v20170512-1932/org.eclipse.osgi-3.12.0.v20170512-1932.jar
Framework classpath:
    file:/home/jan/.m2/repository/p2/osgi/bundle/org.eclipse.osgi/3.12.0.v20170512-1932/org.eclipse.osgi-3.12.0.v20170512-1932.jar
Debug options:
    file:/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/.options not found
Time to load bundles: 1003
19:16:28.125 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.core.common.ThreadPoolManager - Created thread pool 'safeCall' with size 5
19:16:28.260 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.c.i.i18n.I18nProviderImpl - No language set, setting locale to 'null'.
19:16:28.260 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.c.i.i18n.I18nProviderImpl - Error setting measurement system for value 'null'.
19:16:28.355 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.core.common.ThreadPoolManager - Created scheduled thread pool 'discovery' of size 5
19:16:28.361 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Scheduled astro location-changed job every 60 seconds
19:16:28.361 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.c.d.AbstractDiscoveryService - Background discovery for discovery service 'org.openhab.binding.astro.internal.discovery.AstroDiscoveryService' enabled.
19:16:28.523 [Start Level: Equinox Container: c94b095b-4173-46a3-8920-499129d64ee2] DEBUG o.e.s.core.common.ThreadPoolManager - Created scheduled thread pool 'scheduler' of size 5
Starting application: 3866
!SESSION 2019-02-23 19:16:24.902 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_202
java.vendor=Azul Systems, Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties
Command-line arguments:  -debug -consolelog -data /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/data -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties

!ENTRY org.openhab.core.test 2 0 2019-02-23 19:16:28.894
!MESSAGE Could not resolve module: org.openhab.core.test [45]
  Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"


!ENTRY org.openhab.binding.astro.test 2 0 2019-02-23 19:16:28.918
!MESSAGE Could not resolve module: org.openhab.binding.astro.test [43]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test.storage
    -> Export-Package: org.eclipse.smarthome.test.storage; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902220301"; version="2.5.0"; uses:="org.eclipse.smarthome.core.storage"
       org.openhab.core.test [45]
         Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test
    -> Export-Package: org.eclipse.smarthome.test; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902220301"; version="2.5.0"; uses:="org.eclipse.jetty.servlet,org.osgi.framework"


!ENTRY org.eclipse.osgi 4 0 2019-02-23 19:16:28.920
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Bundle org.openhab.binding.astro.test is not found
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:173)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.createCombinedClassLoader(OsgiSurefireBooter.java:114)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:107)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
19:16:29.006 [Framework stop] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Stopping Astro device background discovery
19:16:29.006 [Framework stop] DEBUG o.o.b.a.i.d.AstroDiscoveryService - Stopped Astro device background discovery
An error has occurred. See the log file
/home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/configuration/1550945785491.log.
!SESSION 2019-02-23 19:16:24.902 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_202
java.vendor=Azul Systems, Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties
Command-line arguments:  -debug -consolelog -data /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/work/data -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties /home/jan/openhab-master/git/openhab2-addons/addons/binding/org.openhab.binding.astro.test/target/surefire.properties

!ENTRY org.openhab.core.test 2 0 2019-02-23 19:16:28.894
!MESSAGE Could not resolve module: org.openhab.core.test [45]
  Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"


!ENTRY org.openhab.binding.astro.test 2 0 2019-02-23 19:16:28.918
!MESSAGE Could not resolve module: org.openhab.binding.astro.test [43]
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test.storage
    -> Export-Package: org.eclipse.smarthome.test.storage; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902220301"; version="2.5.0"; uses:="org.eclipse.smarthome.core.storage"
       org.openhab.core.test [45]
         Unresolved requirement: Import-Package: org.hamcrest; version="[1.3.0,2.0.0)"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.test
    -> Export-Package: org.eclipse.smarthome.test; bundle-symbolic-name="org.openhab.core.test"; bundle-version="2.5.0.201902220301"; version="2.5.0"; uses:="org.eclipse.jetty.servlet,org.osgi.framework"


!ENTRY org.eclipse.osgi 4 0 2019-02-23 19:16:28.920
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Bundle org.openhab.binding.astro.test is not found
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:173)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.createCombinedClassLoader(OsgiSurefireBooter.java:114)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:107)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

I see that it fails to resolve the org.openhab.core.test bundle because it can’t import org.hamcrest. I can get around that by changing org.hamcrest.core to org.hamcrest in the pom.xml, however, org.eclipse.smarthome.test.storage still fails.