You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2017/08/23 23:30:00 UTC

[jira] [Resolved] (SM-3466) spring-web should include optional imports for Joda Time

     [ https://issues.apache.org/jira/browse/SM-3466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-3466.
------------------------------
       Resolution: Fixed
    Fix Version/s: bundles-2017.08

> 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
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: bundles-2017.08
>
>
> 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)