title: NoClassDefFoundError for JsonErrorUnmarshallerV2 with AWS Java SDK
body: <p>I'm just starting with DynamoDb and I'm a beginner with maven.  I'm hitting an error when trying to run my project that I can't fix.</p>
  
  <p>When I try to run the project in IntelliJ I get:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/amazonaws/transform/JsonErrorUnmarshallerV2
  at com.amazonaws.services.kms.AWSKMSClient.init(AWSKMSClient.java:305)
  </code></pre>
  
  <p>In the top level pom I have the following dependency:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk&lt;/artifactId&gt;
              &lt;version&gt;1.10.39&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I've tried lots of things, e.g. including the maven dependency for KMS separately, referencing the latest versions of both the sdk and kms, and the same version of the sdk and kms.  I've tried including the bom and then the sdk like this:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk-bom&lt;/artifactId&gt;
              &lt;version&gt;1.10.40&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
              &lt;artifactId&gt;aws-java-sdk&lt;/artifactId&gt;
              &lt;version&gt;1.10.40&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I always get the same error.  mvn clean and mvn install work without error, but running the application fails.  </p>
  
  <p>I can see that there is no definition for JsonErrorUnmarshallerV2 in the debugger, however aws-sdk-core is supposed to provide this and should be included.</p>
  
  <p>How can I fix or further debug this problem?</p>