Driver dependency configuration with Apache Maven

Inside our integrated developer environment (IDE), we will create a new Maven Java project. I'll specify the package as PacktCassDev. Then, we'll need to make sure that our pom.xml file is configured with the desired version of the DataStax Java driver:

<dependencies>    <dependency>        <groupId>com.datastax.cassandra</groupId>        <artifactId>cassandra-driver-core</artifactId>        <version>3.6.0</version>    </dependency></dependencies>

We won't have any other dependencies, so this should be the only dependency listed (for now). With that in place, we can move on to writing a class to handle our connections.

You are welcome to use the IDE of your choice. This chapter should work fine either with the latest ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.