Guillaume Lederrey created FLINK-27864:
------------------------------------------
Summary: Duplicated classes (jar hell) on flink-table-runtime
Key: FLINK-27864
URL: https://issues.apache.org/jira/browse/FLINK-27864
Project: Flink
Issue Type: Improvement
Components: Table SQL / Runtime
Affects Versions: 1.15.0
Reporter: Guillaume Lederrey
Our build uses the [maven-duplicate-finder
plugin|https://github.com/basepom/duplicate-finder-maven-plugin] to detect jar
hell issues. This is finding issues with Janino being included in the
flink-table-runtime jar as well as a maven dependency declared in the pom of
that same artifact (see [build
log|https://integration.wikimedia.org/ci/job/wikimedia-event-utilities-maven-java8-docker/219/console]).
We are avoiding that issue by adding an exclusion (see [current work in
progess,
L66-80|https://gerrit.wikimedia.org/r/c/wikimedia-event-utilities/+/791646/34/eventutilities-flink/pom.xml#66]).
I'm not comfortable with how Flink is packaged, but I suspect a missing
relocation or exclusion in the [configuration of the shade
plugin|https://github.com/apache/flink/blob/release-1.15.0/flink-table/flink-table-planner/pom.xml#L311-L399]
of that module.
The impact is minimal (excluding the Janino dependencies is a reasonable
workaround), but this creates some level of confusion.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)