title: java.lang.NoSuchMethodError: software.amazon.awssdk.utils.IoUtils.closeQuietly
body: <p>I am trying to index files on S3 with Lucene and. I found this question <a href="https://stackoverflow.com/questions/38817050/integrating-lucene-index-and-amazon-aws">Integrating Lucene Index and Amazon AWS</a>, with some code, where one can replace the FSDirectory call with</p>
  <pre><code>S3Directory dir = new S3Directory(&quot;my-lucene-index&quot;);
  dir.create();
  // use it in your code in place of FSDirectory, for example
  dir.close();
  dir.delete();
  </code></pre>
  <p>. In order for this to work, I needed to download some dependencies from aws, namely the following:</p>
  <ul>
  <li>aws-core-2.13.54</li>
  <li>utils-2.13.54</li>
  <li>auth-2.13.54</li>
  <li>http-client-spi-2.13.54</li>
  <li>aws-xml-protocol-2.13.54</li>
  </ul>
  <p>From Lucene I have following dependencies:</p>
  <ul>
  <li>lucene-core-7.5.0</li>
  <li>lucene-suggest-6.4.0</li>
  </ul>
  <p>For logging I have following dependencies:</p>
  <ul>
  <li>log4j-slf4j-impl-2.13.3</li>
  <li>log4j-to-slf4j-2.13.3</li>
  <li>log4j-core-2.13.3</li>
  <li>log4j-api-2.13.3</li>
  </ul>
  <p>Additionally I have following AWS SDK dependencies:</p>
  <ul>
  <li>aws-java-sdk-core-1.11.820</li>
  </ul>
  <p>That additional AWS SDK Dependency I need for some other part of the code, however I checked by removing if that would have an influence, and it does not have an influence.</p>
  <p>I have been checking the dependencies for several hours now, and from my understanding there should be no conflicting dependencies left in the classpath, but whenever I try to run the programm I get the error:</p>
  <p><code>java.lang.NoSuchMethodError: software.amazon.awssdk.utils.IoUtils.closeQuietly(Ljava/lang/AutoCloseable;Lsoftware/amazon/awssdk/thirdparty/org/slf4j/Logger;)</code></p>
  <p>which apparently indicates some conflicting dependencies. But I don't see, which dependencies are conflicting. Has anyone encountered that problem? Or is there now a better approach to index data on AWS S3 with Lucene?</p>