Hopefully there’s a maven guru (@maintainer) around as what I’m trying to do is way more advanced than my knowledge of maven!
Short version: is there a maven setting or plugin I can use to get a binding jar to include a dependency (a library jar that’s now a local artifact) when the binding is being built without hardcoding it in the bin.includes?
Long version: My Orvibo S20 binding uses a core standalone library I wrote that I’ve pushed to github as a maven project. Instead of having to rebuild, copy the library local to the binding and then amend the manifest and build path each time I make changes to the library, my hope was that I could somehow use my github releases for the library as a maven artifact so that I’d only need to change the release version in the pom when building.
I came across jitpack.io which allows me to do this. As far as I understand it does this by going to your stated github repo, downloading and building the project and saving the resulting artifact in your local maven repo. As part of this I removed the hard coded entry from the bin.includes section in the build.properties file. Having removed this, the binding builds without errors but no longer has the library jar included (not a surprise given that I’d just removed the line telling it to) and thus you get the NoClassDef exceptions thrown at runtime.
Thanks