aws-sdk-java-v2: software.amazon.awssdk.http Does not exist in Maven Repository

Expected Behavior

  1. The following import should resolve the symbol for ApacheHttpClient :
import software.amazon.awssdk.http.apache.ApacheHttpClient;
  1. Either of the following POM dependency configurations should result to the relevant JAR file being downloaded:
<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>software.amazon.awssdk</groupId>
        <artifactId>bom</artifactId>
        <version>2.3.9</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
::
    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>http</artifactId>
    </dependency>

or

<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>software.amazon.awssdk</groupId>
        <artifactId>bom</artifactId>
        <version>2.3.9</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
::
    <dependency>
      <groupId>software.amazon.awssdk.http</groupId>
      <artifactId>apache</artifactId>
    </dependency>
  1. Package information should exist in the Maven repository.

Current Behavior

During compile:

Error:(27, 42) java: package software.amazon.awssdk.http.apache does not exist

As I understand it, the official AWS Java SDK 2.x.x is published to Maven repository under the group name software.amazon.awssdk. However, the following search in Maven repository turns up with nothing: https://mvnrepository.com/search?q=software.amazon.awssdk.http

In any case, the task that I was originally trying to address has already been resolved as I have found a simpler way to do it. However, I would like to leave this issue here just in case this is indeed a bug and/or someone has an explanation as to what is happening.

Your Environment

  • AWS Java SDK version used: 2.3.9
  • JDK version used: 1.8.0_45
  • Operating System and version: macOS 10.14.2 (Mojave)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

The artifactId for apache-client module is actually apache-client

https://github.com/aws/aws-sdk-java-v2/blob/89826f128269dc549d60facb890f9b077c151f6e/http-clients/apache-client/pom.xml#L27

So you would need

    <dependency>
      <groupId>software.amazon.awssdk</groupId>
      <artifactId>apache-client</artifactId>
    </dependency>

@Kailash2509 sorry, I was busy the past several weeks, and I did not notice your question. Glad to know you got around it though. 😃