title: AWS SQS: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge?
body: <p>I am trying to a message to SQS in my Java code as follows:</p>
  <pre><code>public void pushToSQS(){
  
      String queueURL = &quot;https://sqs.us-east-1.amazonaws.com/205135634997/myQueue.fifo&quot;;
      
      try {
  
          final AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient();
  
          sqs.sendMessage(new SendMessageRequest(queueURL,
                  &quot;test message&quot;));
  
      } catch (final AmazonServiceException e) {
          log.error(&quot;Error: &quot; + e.getMessage());
      }
  }
  </code></pre>
  <p>However at line: <code>final AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient();</code></p>
  <p>I get the error:</p>
  <pre><code>java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge
  Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonMerge
  </code></pre>
  <p>I have added the following to my pom.xml:</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk-models&lt;/artifactId&gt;
              &lt;version&gt;1.11.86&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>Below are all the <code>jackson</code> dependencies in the project:
  <a href="https://i.stack.imgur.com/thdjT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/thdjT.png" alt="enter image description here" /></a></p>
  <p>In <code>mvn</code> dependency tree I can see:</p>
  <pre><code>+- org.jboss.resteasy:resteasy-multipart-provider:jar:3.0.19.Final:provided
  [INFO] |  +- org.jboss.resteasy:resteasy-client:jar:3.0.19.Final:provided
  [INFO] |  +- org.jboss.resteasy:resteasy-jaxb-provider:jar:2.3.5.Final:provided
  [INFO] |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.5.jboss-1:provided
  [INFO] |  |     +- com.sun.istack:istack-commons-runtime:jar:2.6.1:provided
  [INFO] |  |     \- com.sun.xml.txw2:txw2:jar:20110809:provided
  [INFO] |  +- com.sun.mail:javax.mail:jar:1.5.5:provided
  [INFO] |  \- org.apache.james:apache-mime4j:jar:0.6:provided
  [INFO] \- org.jboss.resteasy:resteasy-jackson2-provider:jar:3.0.19.Final:provided
  [INFO]    +- com.fasterxml.jackson.core:jackson-core:jar:2.6.3:provided
  [INFO]    +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.3:provided
  [INFO]    +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.3:provided
  [INFO]    \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.6.3:provided
  [INFO]       +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.6.3:provided
  [INFO]       \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.3:provided
  
  
  [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile
  </code></pre>
  <p>What is causing this error?</p>