Try to build/compile a network binding from source code

Hello everyone,

Here is what I have done,

1 git clone openhab2-addons.git
from github

2
$cd openhab2-addons/addons/binding/org.openhab.binding.network

3
$mvn package

4
previously, I download and extract
distribution-1.8.1-runtime.zip
distribution-1.8.1-demo.zip

5
$cp ./target/org.openhab.binding.network-2.0.0-SNAPSHOT.jar ~/Downloads/openhab/addons/

Q1.One thing I want to mention is that jar package here is 2.0.0-SNAPSHOT, however, version of jar package from demo distribution, is 1.8.1, which is https://bintray.com/artifact/download/openhab/bin/distribution-1.8.1-demo.zip.
Is that a problem for different version?

**Q2.Another thing I want mention is that network binding is not in the binding list, **
at https://github.com/openhab/openhab/wiki/Bindings,
Does that mean network binding already not supported by openHAB?

6
$start.sh
It seems from the consolelogging information the network binding module is not been loaded.
Q3.Am I correct for that?

Thank you. Any information help is welcome.
I hope my description is clear enough. Please let me know if I can do anything to help.

I also attached loggin inforamtion for reference,
$start.sh
Launching the openHAB runtime…
osgi> 2016-03-08 15:30:26.949 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.1).
2016-03-08 15:30:27.712 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-03-08 15:30:27.755 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-03-08 15:30:29.327 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-03-08 15:30:37.525 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo_ipp.sitemap’
2016-03-08 15:30:37.599 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.sitemap’
2016-03-08 15:30:37.679 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo2.sitemap’
2016-03-08 15:30:37.703 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'logging.persist’
2016-03-08 15:30:37.719 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist’
2016-03-08 15:30:37.726 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'exec.persist’
2016-03-08 15:30:37.729 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'db4o.persist’
2016-03-08 15:30:37.780 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.script’
2016-03-08 15:30:37.982 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.items’
2016-03-08 15:30:37.988 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
2016-03-08 15:30:38.110 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo_ipp.items’
2016-03-08 15:30:38.147 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo2.items’
2016-03-08 15:30:38.161 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'theNameYouWish.items’
2016-03-08 15:30:41.366 [INFO ] [.service.AbstractActiveService] - NTP Refresh Service has been started
2016-03-08 15:30:41.410 [INFO ] [.service.AbstractActiveService] - HTTP Refresh Service has been started
2016-03-08 15:30:41.470 [INFO ] [.p.rrd4j.internal.RRD4jService] - Removing invalid defintion component = null heartbeat = 0 min/max = 0.0/0.0 step = 0 0 archives(s) = [] 0 items(s) = []
2016-03-08 15:30:46.559 [INFO ] [runtime.busevents ] - Date state updated to 2016-03-08T15:30:46
2016-03-08 15:30:47.193 [INFO ] [runtime.busevents ] - Weather_Humidity state updated to 80
2016-03-08 15:30:47.247 [INFO ] [runtime.busevents ] - Weather_Temperature state updated to 0
2016-03-08 15:30:48.251 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'demo.rules’
2016-03-08 15:30:49.271 [ERROR] [m.r.internal.engine.RuleEngine] - Error during the execution of startup rule ‘Initialize light states’: Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
2016-03-08 15:30:49.396 [ERROR] [m.r.internal.engine.RuleEngine] - Error during the execution of startup rule ‘Initialize heating states’: Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
2016-03-08 15:30:49.493 [ERROR] [m.r.internal.engine.RuleEngine] - Error during the execution of startup rule ‘Initialize contact states’: Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
2016-03-08 15:30:49.519 [INFO ] [runtime.busevents ] - DemoLocation state updated to 52.5200066,13.4049540
2016-03-08 15:30:49.648 [INFO ] [runtime.busevents ] - Temperature_GF_Corridor state updated to 18.10000000
2016-03-08 15:30:49.654 [INFO ] [runtime.busevents ] - Temperature_GF_Toilet state updated to 20.10000000
2016-03-08 15:30:49.657 [INFO ] [runtime.busevents ] - Temperature_GF_Living state updated to 18.60000000
2016-03-08 15:30:49.660 [INFO ] [runtime.busevents ] - Temperature_GF_Kitchen state updated to 18.60000000
2016-03-08 15:30:49.663 [INFO ] [runtime.busevents ] - Temperature_FF_Bath state updated to 21.70000000
2016-03-08 15:30:49.666 [INFO ] [runtime.busevents ] - Temperature_FF_Office state updated to 17.90000000
2016-03-08 15:30:49.669 [INFO ] [runtime.busevents ] - Temperature_FF_Child state updated to 21.60000000
2016-03-08 15:30:49.673 [INFO ] [runtime.busevents ] - Temperature_FF_Bed state updated to 22.30000000
2016-03-08 15:30:49.741 [INFO ] [runtime.busevents ] - Weather_Temp_Max state updated to 3
2016-03-08 15:30:49.775 [INFO ] [runtime.busevents ] - Weather_Temp_Min state updated to 0
2016-03-08 15:30:49.817 [INFO ] [g.openhab.model.script.Weather] - Temperature evolved of 0 degrees.
2016-03-08 15:31:18.182 [INFO ] [penhab.io.rest.RESTApplication] - Stopped REST API

It looks as if you are trying to use an openHAB 2 binding on openHAB 1? If so, that won’t work. openHAB 1 bindings ought to work on either 1 or 2, whereas openHAB 2 bindings only work on openHAB 2. Perhaps there is an openHAB 1 binding that does what you are after, otherwise you will have to install a recent openHAB 2 build in order to use the openHAB 2 binding.