Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.targetJdk>1.7</project.build.targetJdk>
<shadeBase>com.facebook.presto.hadoop.\$internal</shadeBase>
<dep.avro.version>1.11.3</dep.avro.version>
<dep.slf4j.version>1.7.13</dep.slf4j.version>
<dep.hadoop.version>2.7.4</dep.hadoop.version>

Expand All @@ -54,6 +55,16 @@
<air.javadoc.lint>-missing</air.javadoc.lint>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>${dep.avro.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
Expand Down Expand Up @@ -455,8 +466,8 @@
<shadedPattern>${shadeBase}.com.google.gson</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson.core</pattern>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this needed to change?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current version of avro was 1.7.3, but version 1.11.3 includes dependencies with jackson-core (already relocated) and jackson-databind and jackson-annotations (not relocated).

<shadedPattern>${shadeBase}.com.fasterxml.jackson.core</shadedPattern>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>${shadeBase}.com.fasterxml.jackson</shadedPattern>
</relocation>
<relocation>
<pattern>org.codehaus.jackson</pattern>
Expand Down