title: Flink Avro 1.8.1 NoSuchMethodError when running on cluster
body: <p>We run Flink 1.3.0 CEP jobs and rely on Avro <strong>1.8.1</strong> (LogicalType does not exist in Avro 1.7.7) to serialize complex events (as POJOs). It's working when run from within the IDE (IntelliJ), but when we package the jar-file and deploy it to the cluster we get: </p>
  
  <pre><code>java.lang.NoSuchMethodError: org.apache.avro.Schema.setLogicalType(Lorg/apache/avro/LogicalType;)V
  at org.apache.avro.LogicalType.addToSchema(LogicalType.java:72)
  </code></pre>
  
  <p>However, it seems that we build the jar containing the right Avro package version (1.8.1) regarding the build output.</p>
  
  <pre><code>mvn clean package -Pbuild-jar
  ...
  [INFO] Including org.apache.avro:avro:jar:1.8.1 in the shaded jar.
  ...
  </code></pre>
  
  <p><strong>Question:</strong> How can we assure that our Flink cluster uses the correct Avro version (1.8.1)?</p>
  
  <p>Our pom.xml:   </p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.group.flink&lt;/groupId&gt;
  &lt;artifactId&gt;cep&lt;/artifactId&gt;
  &lt;version&gt;0.2&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;Complex Event Processing&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;flink.version&gt;1.3.0&lt;/flink.version&gt;
      &lt;slf4j.version&gt;1.7.7&lt;/slf4j.version&gt;
      &lt;log4j.version&gt;1.2.17&lt;/log4j.version&gt;
      &lt;kafka.version&gt;0.10.2.1&lt;/kafka.version&gt;
      &lt;scala.version&gt;2.11&lt;/scala.version&gt;
      &lt;avro.version&gt;1.8.1&lt;/avro.version&gt;
      &lt;junit.version&gt;5.0.0-M4&lt;/junit.version&gt;
  &lt;/properties&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;apache.snapshots&lt;/id&gt;
          &lt;name&gt;Apache Development Snapshot Repository&lt;/name&gt;
          &lt;url&gt;https://repository.apache.org/content/repositories/snapshots/&lt;/url&gt;
          &lt;releases&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
          &lt;id&gt;jitpack.io&lt;/id&gt;
          &lt;url&gt;https://jitpack.io&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
  &lt;!-- 
  
      Execute "mvn clean package -Pbuild-jar"
      to build a jar file out of this project!
  
      How to use the Flink Quickstart pom:
  
      a) Adding new dependencies:
          You can add dependencies to the list below.
          Please check if the maven-shade-plugin below is filtering out your dependency
          and remove the exclude from there.
  
      b) Build a jar for running on the cluster:
          There are two options for creating a jar from this project
  
          b.1) "mvn clean package" -&gt; this will create a fat jar which contains all
                  dependencies necessary for running the jar created by this pom in a cluster.
                  The "maven-shade-plugin" excludes everything that is provided on a running Flink cluster.
  
          b.2) "mvn clean package -Pbuild-jar" -&gt; This will also create a fat-jar, but with much
                  nicer dependency exclusion handling. This approach is preferred and leads to
                  much cleaner jar files.
  --&gt;
  
  &lt;dependencies&gt;
      &lt;!-- Apache Flink dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
          &lt;artifactId&gt;flink-java&lt;/artifactId&gt;
          &lt;version&gt;${flink.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
          &lt;artifactId&gt;flink-streaming-java_${scala.version}&lt;/artifactId&gt;
          &lt;version&gt;${flink.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
          &lt;artifactId&gt;flink-clients_${scala.version}&lt;/artifactId&gt;
          &lt;version&gt;${flink.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
          &lt;artifactId&gt;flink-cep_${scala.version}&lt;/artifactId&gt;
          &lt;version&gt;${flink.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
          &lt;artifactId&gt;flink-connector-kafka-0.10_${scala.version}&lt;/artifactId&gt;
          &lt;version&gt;${flink.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- explicitly add a standard loggin framework, as Flink does not (in the future) have
          a hard dependency on one specific framework by default --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;version&gt;${slf4j.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;${log4j.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.kafka&lt;/groupId&gt;
          &lt;artifactId&gt;kafka_${scala.version}&lt;/artifactId&gt;
          &lt;version&gt;${kafka.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.avro&lt;/groupId&gt;
          &lt;artifactId&gt;avro&lt;/artifactId&gt;
          &lt;version&gt;${avro.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
          &lt;version&gt;${junit.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.github.smueller18&lt;/groupId&gt;
          &lt;artifactId&gt;avro-builder&lt;/artifactId&gt;
          &lt;version&gt;0.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.github.smueller18&lt;/groupId&gt;
          &lt;artifactId&gt;flink-serialization&lt;/artifactId&gt;
          &lt;version&gt;0.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;joda-time&lt;/groupId&gt;
          &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
          &lt;version&gt;2.9.9&lt;/version&gt;
      &lt;/dependency&gt;
  
  
  &lt;/dependencies&gt;
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;!-- Profile for packaging correct JAR files --&gt;
          &lt;id&gt;build-jar&lt;/id&gt;
  
          &lt;activation&gt;
              &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
          &lt;/activation&gt;
  
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                  &lt;artifactId&gt;flink-java&lt;/artifactId&gt;
                  &lt;version&gt;${flink.version}&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                  &lt;artifactId&gt;flink-streaming-java_${scala.version}&lt;/artifactId&gt;
                  &lt;version&gt;${flink.version}&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
                  &lt;artifactId&gt;flink-clients_${scala.version}&lt;/artifactId&gt;
                  &lt;version&gt;${flink.version}&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
                  &lt;version&gt;${slf4j.version}&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;log4j&lt;/groupId&gt;
                  &lt;artifactId&gt;log4j&lt;/artifactId&gt;
                  &lt;version&gt;${log4j.version}&lt;/version&gt;
                  &lt;scope&gt;provided&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
  
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;!-- disable the exclusion rules --&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.4.1&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;shade&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;artifactSet&gt;
                                      &lt;excludes combine.self="override"&gt;&lt;/excludes&gt;
                                  &lt;/artifactSet&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;!-- We use the maven-shade plugin to create a fat jar that contains all dependencies
          except flink and it's transitive dependencies. The resulting fat-jar can be executed
          on a cluster. Change the value of Program-Class if your program entry point changes. --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;!-- Run shade goal on package phase --&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;artifactSet&gt;
                              &lt;excludes&gt;
                                  &lt;!-- This list contains all dependencies of flink-dist
                                  Everything else will be packaged into the fat-jar
                                  --&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-annotations&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-shaded-hadoop2&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-shaded-curator-recipes&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-core&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-java&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-scala_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-runtime_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-optimizer_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-clients_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-avro_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-examples-batch_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-examples-streaming_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-streaming-java_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-streaming-scala_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-scala-shell_2.11&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-python&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-metrics-core&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-metrics-jmx&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.flink:flink-statebackend-rocksdb_2.11&lt;/exclude&gt;
  
                                  &lt;!-- Also exclude very big transitive dependencies of Flink
  
                                  WARNING: You have to remove these excludes if your code relies on other
                                  versions of these dependencies.
  
                                  --&gt;
  
                                  &lt;exclude&gt;log4j:log4j&lt;/exclude&gt;
                                  &lt;exclude&gt;org.scala-lang:scala-library&lt;/exclude&gt;
                                  &lt;exclude&gt;org.scala-lang:scala-compiler&lt;/exclude&gt;
                                  &lt;exclude&gt;org.scala-lang:scala-reflect&lt;/exclude&gt;
                                  &lt;exclude&gt;com.data-artisans:flakka-actor_*&lt;/exclude&gt;
                                  &lt;exclude&gt;com.data-artisans:flakka-remote_*&lt;/exclude&gt;
                                  &lt;exclude&gt;com.data-artisans:flakka-slf4j_*&lt;/exclude&gt;
                                  &lt;exclude&gt;io.netty:netty-all&lt;/exclude&gt;
                                  &lt;exclude&gt;io.netty:netty&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-fileupload:commons-fileupload&lt;/exclude&gt;
                                  &lt;!--&lt;exclude&gt;org.apache.avro:avro&lt;/exclude&gt;--&gt;
                                  &lt;exclude&gt;commons-collections:commons-collections&lt;/exclude&gt;
                                  &lt;exclude&gt;org.codehaus.jackson:jackson-core-asl&lt;/exclude&gt;
                                  &lt;exclude&gt;org.codehaus.jackson:jackson-mapper-asl&lt;/exclude&gt;
                                  &lt;exclude&gt;com.thoughtworks.paranamer:paranamer&lt;/exclude&gt;
                                  &lt;exclude&gt;org.xerial.snappy:snappy-java&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.commons:commons-compress&lt;/exclude&gt;
                                  &lt;exclude&gt;org.tukaani:xz&lt;/exclude&gt;
                                  &lt;exclude&gt;com.esotericsoftware.kryo:kryo&lt;/exclude&gt;
                                  &lt;exclude&gt;com.esotericsoftware.minlog:minlog&lt;/exclude&gt;
                                  &lt;exclude&gt;org.objenesis:objenesis&lt;/exclude&gt;
                                  &lt;exclude&gt;com.twitter:chill_*&lt;/exclude&gt;
                                  &lt;exclude&gt;com.twitter:chill-java&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-lang:commons-lang&lt;/exclude&gt;
                                  &lt;exclude&gt;junit:junit&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.commons:commons-lang3&lt;/exclude&gt;
                                  &lt;exclude&gt;org.slf4j:slf4j-api&lt;/exclude&gt;
                                  &lt;exclude&gt;org.slf4j:slf4j-log4j12&lt;/exclude&gt;
                                  &lt;exclude&gt;log4j:log4j&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.commons:commons-math&lt;/exclude&gt;
                                  &lt;exclude&gt;org.apache.sling:org.apache.sling.commons.json&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-logging:commons-logging&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-codec:commons-codec&lt;/exclude&gt;
                                  &lt;exclude&gt;com.fasterxml.jackson.core:jackson-core&lt;/exclude&gt;
                                  &lt;exclude&gt;com.fasterxml.jackson.core:jackson-databind&lt;/exclude&gt;
                                  &lt;exclude&gt;com.fasterxml.jackson.core:jackson-annotations&lt;/exclude&gt;
                                  &lt;exclude&gt;stax:stax-api&lt;/exclude&gt;
                                  &lt;exclude&gt;com.typesafe:config&lt;/exclude&gt;
                                  &lt;exclude&gt;org.uncommons.maths:uncommons-maths&lt;/exclude&gt;
                                  &lt;exclude&gt;com.github.scopt:scopt_*&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-io:commons-io&lt;/exclude&gt;
                                  &lt;exclude&gt;commons-cli:commons-cli&lt;/exclude&gt;
                              &lt;/excludes&gt;
                          &lt;/artifactSet&gt;
                          &lt;filters&gt;
                              &lt;filter&gt;
                                  &lt;artifact&gt;org.apache.flink:*&lt;/artifact&gt;
                                  &lt;excludes&gt;
                                      &lt;!-- exclude shaded google but include shaded curator --&gt;
                                      &lt;exclude&gt;org/apache/flink/shaded/com/**&lt;/exclude&gt;
                                      &lt;exclude&gt;web-docs/**&lt;/exclude&gt;
                                  &lt;/excludes&gt;
                              &lt;/filter&gt;
                              &lt;filter&gt;
                                  &lt;!-- Do not copy the signatures in the META-INF folder.
                                  Otherwise, this might cause SecurityExceptions when using the JAR. --&gt;
                                  &lt;artifact&gt;*:*&lt;/artifact&gt;
                                  &lt;excludes&gt;
                                      &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                                  &lt;/excludes&gt;
                              &lt;/filter&gt;
                          &lt;/filters&gt;
                          &lt;!-- If you want to use ./bin/flink run &lt;quickstart jar&gt; uncomment the following lines.
                          This will add a Main-Class entry to the manifest file --&gt;
                          &lt;!--
                          &lt;transformers&gt;
                              &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                  &lt;mainClass&gt;de.hska.stcs.cep.StreamingJob&lt;/mainClass&gt;
                              &lt;/transformer&gt;
                          &lt;/transformers&gt;
                          --&gt;
                          &lt;createDependencyReducedPom&gt;false&lt;/createDependencyReducedPom&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt; &lt;!-- If you want to use Java 8, change this to "1.8" --&gt;
                  &lt;target&gt;1.8&lt;/target&gt; &lt;!-- If you want to use Java 8, change this to "1.8" --&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  
  
      &lt;!-- If you want to use Java 8 Lambda Expressions uncomment the following lines --&gt;
      &lt;!--
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                      &lt;compilerId&gt;jdt&lt;/compilerId&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
                          &lt;artifactId&gt;tycho-compiler-jdt&lt;/artifactId&gt;
                          &lt;version&gt;0.21.0&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                  &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;lifecycleMappingMetadata&gt;
                          &lt;pluginExecutions&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                      &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
                                      &lt;versionRange&gt;[2.4,)&lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;single&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;ignore/&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                              &lt;pluginExecution&gt;
                                  &lt;pluginExecutionFilter&gt;
                                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                                      &lt;versionRange&gt;[3.1,)&lt;/versionRange&gt;
                                      &lt;goals&gt;
                                          &lt;goal&gt;testCompile&lt;/goal&gt;
                                          &lt;goal&gt;compile&lt;/goal&gt;
                                      &lt;/goals&gt;
                                  &lt;/pluginExecutionFilter&gt;
                                  &lt;action&gt;
                                      &lt;ignore/&gt;
                                  &lt;/action&gt;
                              &lt;/pluginExecution&gt;
                          &lt;/pluginExecutions&gt;
                      &lt;/lifecycleMappingMetadata&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      --&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>UPDATE</strong>: I build flink 1.3 from source and updated the avro version (from 1.7.7 to 1.8.1) in the project's pom.xml and it seems to work for now. Still unsure why it's not working when building the fat jar.</p>