-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Cannot build project because of missing nthbnd dependency #10102
Comments
There is absolutely no reason to build the whole repository to just create a binding. The repository contains a large number of bindings that all are unrelated to each other or needed for your new binding. If you build the repo to start developing a binding you're wasting your time. To start developing a binding start with the skeleton script and just build only your own binding. Both steps are described in the documentation. |
same here. im trying to build homekit addon only and it was working before.
log: |
There was a post on the forum about this that got wiped out due to the outrage unfortunately. It seems there is a botched version of the library in an eclipse maven repository (I don't know where it was. It was linked on the forum). The solution was to manually remove the json-path jar file from your local m2 repository and replace it a version from maven central. (I don't remember the exact instructions, but probably something like this to install the file in your local maven repository with |
@Hilbrand thank you. this fixed it. i download both, jar and pom, from the link you have provided and installed it locally with
|
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/error-running-create-openhab-binding-skeleton-cmd/116633/2 |
So I manually downloaded json-path-2.4.0.jar and json-path-2.4.0.pom and I ran the command: then I reran: and now I get: |
I suspect you're not talking about the output or the skeleton script here. So it's a bit guessing what your are trying to do here. Anyway. The skeleton generated code is just a template and may not be fully up-to-date. We now run spotless to format the code, and spotless is also run as check and when if finds issues your build fails. So in general you should run Note 1: Since you're on windows, make sure your binding is in the |
mvn spotless:apply install fixed it Thanks! |
It's my first time trying to develop for openhab, and I also got this error:
But |
@schinken. If you followed instructions you need to follow the right once 😀see the comment above: #10102 (comment) That is about your specific error. The spotless apply is totally unrelated to the topic of the issue (and also why people should not post other problems in an issue) |
@Hilbrand Thank you so much! BUILD SUCCESS! |
This can be closed now? |
Expected Behavior
Based on the documentation here, I should be able to fork the project and mvn clean install at root, have it complete successfully, and have a jar available to drop into the openhab addons directory.
Current Behavior
When I attempt to clean install, one of the dependencies for openHAB Add-ons :: BOM :: Test Index 3.1.0-SNAPSHOT cannot be found.
The attempt to fetch is here:
And the failure result is here:
Steps to Reproduce (for Bugs)
Context
I was hoping to start writing a binding for a raspberry pi project I'm working on, but I could not get the project to build.
Your Environment
Cloned from commit b65e932.
Intellij 3.2
OpenJDK 11.0.10+9 Zulu: 11.45.27
Windows 10
The text was updated successfully, but these errors were encountered: