title: java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver with AmazonHttpClient
body: <p>All</p>
  
  <p>I am running into this error in my project when I updated aws library to the latest 1.11.3. </p>
  
  <p>Caused by: </p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver
  at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.&lt;init&gt;(ApacheHttpClientFactory.java:40)
  at com.amazonaws.http.AmazonHttpClient.&lt;clinit&gt;(AmazonHttpClient.java:97)
  at com.amazonaws.AmazonWebServiceClient.&lt;init&gt;(AmazonWebServiceClient.java:145)
  at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:393)
  at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:373)
  at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:355)
  at com.amazonaws.services.s3.AmazonS3Client.&lt;init&gt;(AmazonS3Client.java:339)
  </code></pre>
  
  <p>in my pom.xml</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
          &lt;artifactId&gt;aws-java-sdk-core&lt;/artifactId&gt;
          &lt;version&gt;1.11.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
          &lt;artifactId&gt;aws-java-sdk-s3&lt;/artifactId&gt;
          &lt;version&gt;1.11.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
          &lt;artifactId&gt;aws-java-sdk-kms&lt;/artifactId&gt;
          &lt;version&gt;1.11.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
           &lt;groupId&gt;org.bouncycastle&lt;/groupId&gt;
            &lt;artifactId&gt;bcprov-ext-jdk15on&lt;/artifactId&gt;
           &lt;version&gt;1.54&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
           &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
           &lt;artifactId&gt;aws-encryption-sdk-java&lt;/artifactId&gt;
            &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Anyone know what I did wrong?</p>
  
  <p>thanks</p>