I'm trying to subclass JacksonJsonProvider, but I'm getting "The hierarchy of the type MyJacksonJsonProvider is inconsistent" out of eclipse. This normally means (I think) that something is missing from my classpath, but I can't figure out what.
I have a simple maven eclipse project. I have added a dependency on jackson-jaxrs-json-provider, 2.8.1. I have a simple class:
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
public class MyJacksonJsonProvider extends JacksonJsonProvider {
}
However, I get this error.
Naively, I assumed that maven would ensure that all the required dependencies were in place in my classpath?
It has added:
jaxrs-json-provider
jaxrs-base
core
databind
annotations
module-jaxb-annotations
all at version 2.8.1
Any suggestions on what extra I might need in my classpath, or indeed what else the issue is?
Thanks.