Open christianblunden opened 9 years ago
had half a day to play with this and made very slight progress, using
:uberjar-merge-with {"META-INF/cxf/bus-extensions.txt" [slurp str spit]}
in the project.clj (loosely based on https://stackoverflow.com/questions/24430342/error-on-using-camel-cxf-no-binding-factory-http-schemas-xmlsoap-org-soap Now get a NullPointerException, and no more time to spend, but if someone wants to pick this up ...
Ah thanks Elise.. I'll take a look
With the pull request above which uses the latest SDK and the maven shade plugin + using the technique provided by Elise... Binj can now be used within uberjar.
Thanks @elisehuard
However I did make breaking changes ;)
This seems to be an underlying problem with the Apache Camel jars, when bundling into an uberjar. http://camel.apache.org/how-do-i-use-a-big-uber-jar.html
Usage results in the following error:
This problem is described in the following Stack Overflow posts: http://stackoverflow.com/questions/24430342/error-on-using-camel-cxf-no-binding-factory-http-schemas-xmlsoap-org-soap http://stackoverflow.com/questions/6831954/how-to-package-an-apache-cxf-application-into-a-monolithic-jar-with-the-maven-s
Solution seems to use Maven Shade plugin, which can be referenced in the project.clj as described here: https://github.com/technomancy/leiningen/issues/1460
I gave this a try, but it is beyond by Java/Maven powers unfortunately...