The NeoHub binding is an old v1 version which seems not to have been touched for a couple of years. The binding works with the manufacturers original “NeoStat” products, but it needs to be updated to add some properties and methods to support the manufacturers new “NeoPlug” products.
I have studied the binding source code, and I know exactly what updates need to be made. However I am having trouble to set up the Eclipse IDE to write/build/test these changes. The main problem seems to be broken dependencies between the v2.x core and the v1.x binding code on Git.
My questions are as follows…
Can anyone please help me with setting up the Eclipse IDE so that I can (at least in the first phase) get the v1.x version of the NeoHub binding to compile (so that I can at least play with it locally and test it…)
It occurs to me that if I am to update the v1.x binding, it would probably also make sense to migrate it to support the v2.x environment. (??) However this is probably a task “above my pay grade”, so I might need some in depth support on that. Can anyone help?
EDIT: below is the log that I get from mvn clean install
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.openhab.binding.neohub 1.14.0.qualifier
[ERROR] Missing requirement: org.openhab.binding.neohub 1.14.0.qualifier requires ‘package com.google.common.base 10.0.1’ but it could not be found
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.openhab.binding:org.openhab.binding.neohub:1.14.0-SNAPSHOT @ G:\Users\Documents\03 Programming\git\openhab1-addons\bundles\binding\org.openhab.binding.neohub\pom.xml: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Cannot resolve dependencies of MavenProject: org.openhab.binding:org.openhab.binding.neohub:1.14.0-SNAPSHOT @ G:\Users\Documents\03 Programming\git\openhab1-addons\bundles\binding\org.openhab.binding.neohub\pom.xml
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead (TychoMavenLifecycleParticipant.java:100)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:264)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.eclipse.tycho.artifacts.DependencyResolutionException: Cannot resolve dependencies of MavenProject: org.openhab.binding:org.openhab.binding.neohub:1.14.0-SNAPSHOT @ G:\Users\Documents\03 Programming\git\openhab1-addons\bundles\binding\org.openhab.binding.neohub\pom.xml[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException