unirest-java 3.14.3 POM does not contain Apache HTTP Client dependency anymore
timomeinen opened this issue ยท 7 comments
It seems there was a deployment issue with the latest release:
https://search.maven.org/artifact/com.konghq/unirest-java/3.14.3/jar
The published pom.xml does not contain dependency to org.apache.httpcomponents:httpclient anymore.
I was just about to report the same. We're seeing a similar issue java.lang.NoClassDefFoundError: org/apache/http/nio/protocol/HttpAsyncResponseConsumer
It could possibly be due to an update to the maven-shade-plugin 11cea49
Same here.
Also jackson is missing when using unirest-objectmapper-jackson.
The packaged unirest-java and unirest-objectmapper-jackson pom.xml files you get from Maven Central are different from the ones in this repo:
https://github.com/Kong/unirest-java/blob/v3.14.3/unirest/pom.xml has the httpcomponents dependencies which are missing in the package from Maven Central
https://github.com/Kong/unirest-java/blob/v3.14.3/object-mapper-jackson/pom.xml has the jackson dependency which is missing in the package from Maven Central
We were able to fix the missing Http... class by using the "standalone" variant of unirest-java (includes shaded dependencies), but with the objectmapper-jackson we do not want (maybe even cannot) do it as we need to use it with additional jackson dependencies which do not work with the included shaded ones.
damn you guys are really on top of updating to the most recent version huh ๐
I agree its probably the shade plugin, I reverted that and I cut a new version. Can someone try it out and let me know if its still an issue?
@ryber We use Renovate to keep up-to-date and for minor releases like this one we simply automerge.
Thanks @ryber. Works again.
Thanks @ryber for the speedy fix. It works for me too.