[
https://issues.apache.org/jira/browse/FLINK-14209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937654#comment-16937654
]
Flavio Pompermaier edited comment on FLINK-14209 at 9/25/19 11:40 AM:
----------------------------------------------------------------------
If you use org.springframework.web.client.RestTemplate to interface with (JSON)
REST services, Spring tries to load MappingJackson2HttpMessageConverter that
requires jackson dependencies on the classpath (included
jackson-dataformat-xml).
If jackson-dataformat-xml could be added to flink shaded jackson it would be
quite easy to write a custom AbstractGenericHttpMessageConverter that uses the
shaded jackson dependecies, otherwise it becomes very complex.
Indeed, this issue is types as "wish"..
was (Author: f.pompermaier):
If you use
[org|eclipse-javadoc:%E2%98%82=ticuro2l3w/%5C/home%5C/okkam%5C/.m2%5C/repository%5C/org%5C/springframework%5C/spring-web%5C/4.3.13.RELEASE%5C/spring-web-4.3.13.RELEASE.jar%3Corg].[springframework|eclipse-javadoc:%E2%98%82=ticuro2l3w/%5C/home%5C/okkam%5C/.m2%5C/repository%5C/org%5C/springframework%5C/spring-web%5C/4.3.13.RELEASE%5C/spring-web-4.3.13.RELEASE.jar%3Corg.springframework].[web|eclipse-javadoc:%E2%98%82=ticuro2l3w/%5C/home%5C/okkam%5C/.m2%5C/repository%5C/org%5C/springframework%5C/spring-web%5C/4.3.13.RELEASE%5C/spring-web-4.3.13.RELEASE.jar%3Corg.springframework.web].[client|eclipse-javadoc:%E2%98%82=ticuro2l3w/%5C/home%5C/okkam%5C/.m2%5C/repository%5C/org%5C/springframework%5C/spring-web%5C/4.3.13.RELEASE%5C/spring-web-4.3.13.RELEASE.jar%3Corg.springframework.web.client].RestTemplate
to interface with (JSON) REST services, Spring tries to load
MappingJackson2HttpMessageConverter that requires jackson dependencies on the
classpath (included jackson-dataformat-xml).
If jackson-dataformat-xml could be added to flink shaded jackson it would be
quite easy to write a custom AbstractGenericHttpMessageConverter that uses the
shaded jackson dependecies, otherwise it becomes very complex.
Indeed, this issue is types as "wish"..
> Add jackson-dataformat-xml to flink-shaded
> ------------------------------------------
>
> Key: FLINK-14209
> URL: https://issues.apache.org/jira/browse/FLINK-14209
> Project: Flink
> Issue Type: Wish
> Components: BuildSystem / Shaded
> Reporter: Flavio Pompermaier
> Priority: Major
>
> This would ease a lot integration with frameworks like Spring
--
This message was sent by Atlassian Jira
(v8.3.4#803005)