[ https://issues.apache.org/jira/browse/SM-3466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Magoffin updated SM-3466: ------------------------------ Summary: spring-web should include optional imports for Joda Time (was: spring-web should include optional import on com.fasterxml.jackson.datatype.joda) > spring-web should include optional imports for Joda Time > -------------------------------------------------------- > > Key: SM-3466 > URL: https://issues.apache.org/jira/browse/SM-3466 > Project: ServiceMix > Issue Type: Bug > Components: bundles > Reporter: Matt Magoffin > Priority: Minor > > The {{org.springframework.http.converter.json.Jackson2ObjectMapperBuilder}} > class in the spring-web bundle tries to auto-register some common Jackson > modules based on class existence checks. One of those checks is for Joda Time > support, by looking for the {{org.joda.time.LocalTime}} and > {{com.fasterxml.jackson.datatype.joda.JodaModule}} classes. The spring-web > bundle does not import those packages, however, so they are never found. > I believe this would be fixed by adding optional imports to the [pom.xml > definition for the spring-web > bundle|https://github.com/apache/servicemix-bundles/blob/master/spring-web-4.2.9.RELEASE/pom.xml], > along the lines of the following (copied from > [spring-context|https://github.com/apache/servicemix-bundles/blob/937d191ec55f4d5abe604b843e1db61173ffceec/spring-context-4.2.9.RELEASE/pom.xml#L89-L90]): > {noformat} > org.joda.time;version="[2,3)";resolution:=optional, > org.joda.time.format;version="[2,3)";resolution:=optional, > {noformat} > I think the following would then also be needed: > {noformat} > com.fasterxml.jackson.datatype.joda.*;version="[2,3)";resolution:=optional, > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)