I have looked at this question and made it work using
.configure(DeserializationConfig.Feature.USE_ANNOTATIONS, true)
.configure(SerializationConfig.Feature.USE_ANNOTATIONS, true);
on my custom ObjectMapper
Json serialization works fine with the above configuration.
But the problem is I want to use Jackson 2.x now because of better deserialization control and I cannot find any good documentation indicating how to configure jackson 2.x to ignore JAXB annotations
Any help would be appreciated.
UPDATE: I tried objectMapper.configure(MapperFeature.USE_ANNOTATIONS, false);
but this seems to have no effect on jackson picking up JAXB annotations.
Second Update: Posted the solution below as an answer.