Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with my binding #18

Closed
pedro-girao opened this issue Oct 17, 2014 · 6 comments
Closed

Building with my binding #18

pedro-girao opened this issue Oct 17, 2014 · 6 comments

Comments

@pedro-girao
Copy link

I am trying to build openhab2 using mvn clean package command, but i can't make the runtime load my binding handler and so on. i.e., If i declare a Thing in the .Things it says:
Cannot register handler. No handler factory for thing...
Am i missing something? I had the binding to the launch on eclipse.
Do I need to add to the pom.xml of distribution?

I can run my binding fine on eclipse...

Can anyone help.
Thank you.

@kaikreuzer
Copy link
Member

You need to put your binding in the addons folder of the runtime. You can find the jar in the target folder of your project. There is not yet any "addons" zip file being created by the build as there are not yet any addons in the official repo. So this will come soon :-)

@pedro-girao
Copy link
Author

I just tried this and it still can't register the handler...
Doesn't it need some other configuration?

@kaikreuzer
Copy link
Member

Are you sure that your jar file contains all relevant files? Maybe something is missing in the build.properties of your binding? Can you confirm that your bundle is available and active? Do you see any log messages from it?

@pedro-girao
Copy link
Author

I believe so. We just compared with the Hue binding .jar and build.properties and it is similar... but our bundle doesn't show up when listing the bundles in the runtime, the hue does...

@pedro-girao
Copy link
Author

Ok, thank you. This is working fine now. We had a problem in the meta.

@kaikreuzer
Copy link
Member

Glad to hear that it is now working for you!

cvanorman pushed a commit to cvanorman/openhab2-addons that referenced this issue Dec 29, 2016
Fixed mistake in documentation
digitaldan pushed a commit to digitaldan/openhab-addons that referenced this issue Jun 12, 2017
…ding-thing-types

Alarm modes now report delayed states
magx2 added a commit to SUPLA/openhab2-addons that referenced this issue Jun 16, 2019
markus7017 referenced this issue in markus7017/openhab-addons Dec 30, 2019
timestamp (like for sensors)

Signed-off-by: Markus Michels <[email protected]>
GerdZanker pushed a commit to GerdZanker/openhab-addons that referenced this issue Aug 1, 2020
Ran mvn spotless:apply to apply correct code formatting
niebochod pushed a commit to niebochod/openhab-addons that referenced this issue Apr 5, 2021
Update Readme Channel types with UoM.
Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
added location item support in config reader delegate
lolodomo pushed a commit to lolodomo/openhab-addons that referenced this issue May 6, 2022
Ignore monitoring status when handling camera events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants