Installing couchbase java sdk

@boby hope this helps

To get started with Java SDK (regardless of OS) you can do a maven install.

in the pom.xml file add the following under dependencies, that is all you need to do when you build / run the project the dependencies should automatically install for you.

<dependencies>
      <dependency>
            <groupId>com.couchbase.client</groupId>
             <artifactId>java-client</artifactId>
            <version>2.7.13</version>
      </dependency>
</dependencies>

The java-client dependency will pull in two more transitive dependencies. One is called com.couchbase.client.core-io and is a internal dependency which performs all the underlying tasks like IO and cluster management. The other dependency is RxJava which is both used internally and exposed as a first-class API to the user in order to perform scalable and performant asynchronous, reactive operations.

Just for your reference here is an example to setup maven java project in macos (you most likely know this but this is just for your reference).

https://www.pegaxchange.com/2017/10/19/setup-maven-java-project-macos/

1 Like