cassandra-jdbc-wrapper
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.ing.data</groupId>
<artifactId>cassandra-jdbc-wrapper</artifactId>
<version>5.0.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ing.data</groupId>
<artifactId>cassandra-jdbc-wrapper</artifactId>
<version>5.0.0</version>
<packaging>jar</packaging>
<name>Cassandra JDBC Wrapper</name>
<description>JDBC wrapper of the Java Driver for Apache Cassandra®.</description>
<url>https://github.com/ing-bank/cassandra-jdbc-wrapper</url>
<inceptionYear>2020</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>ING Bank</name>
<url>https://www.ing.com</url>
</organization>
<developers>
<developer>
<id>maximevw</id>
<url>https://github.com/maximevw</url>
<name>Maxime Wiewiora</name>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
<contributors>
<!-- Thanks to @adejanovski, developer of the original project forked as base for this one. -->
<contributor>
<name>Alexander Dejanovski</name>
<url>https://github.com/adejanovski</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Madhavan Sridharan</name>
<url>https://github.com/msmygit</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Marius Jokubauskas</name>
<url>https://github.com/mjok</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Sualeh Fatehi</name>
<url>https://github.com/sualeh</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Cedrick Lunven</name>
<url>https://github.com/clun</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Stefano Fornari</name>
<url>https://github.com/stefanofornari</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Liudmila Kornilova</name>
<url>https://github.com/kornilova203</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Lik Dan</name>
<url>https://github.com/LikDan</url>
<roles>
<role>developer</role>
</roles>
</contributor>
<contributor>
<name>Muskan Maheshwari</name>
<url>https://github.com/Muskan02</url>
<roles>
<role>developer</role>
</roles>
</contributor>
</contributors>
<scm>
<connection>scm:git:https://github.com:ing-bank/cassandra-jdbc-wrapper.git</connection>
<developerConnection>scm:git:git@github.com:ing-bank/cassandra-jdbc-wrapper.git</developerConnection>
<url>https://github.com/ing-bank/cassandra-jdbc-wrapper</url>
</scm>
<properties>
<encoding>UTF-8</encoding>
<java.version>17</java.version>
<!-- Versions for dependencies -->
<astra-sdk-devops.version>2.2.2</astra-sdk-devops.version>
<aws-secretsmanager.version>2.45.0</aws-secretsmanager.version>
<aws-sigv4-auth-cassandra.version>4.0.9</aws-sigv4-auth-cassandra.version>
<checkstyle.version>13.4.2</checkstyle.version>
<caffeine.version>3.2.4</caffeine.version>
<cassandra-driver-krb5.version>3.0.0</cassandra-driver-krb5.version>
<commons-collections.version>4.5.0</commons-collections.version>
<commons-io.version>2.22.0</commons-io.version>
<commons-lang3.version>3.20.0</commons-lang3.version>
<java.driver.version>4.19.2</java.driver.version>
<jackson.version>3.1.3</jackson.version>
<jakarta.version>3.0.0</jakarta.version>
<lombok.version>1.18.46</lombok.version>
<opencsv.version>5.12.0</opencsv.version>
<semver4j.version>6.0.0</semver4j.version>
<!-- Versions for test dependencies -->
<approvaltests.version>30.1.1</approvaltests.version>
<dotenv.version>3.2.0</dotenv.version>
<hamcrest.version>3.0</hamcrest.version>
<hikaricp.version>7.0.2</hikaricp.version>
<junit.version>6.1.0</junit.version>
<mockito.version>5.23.0</mockito.version>
<slf4j.version>1.7.36</slf4j.version>
<testcontainers.version>2.0.5</testcontainers.version>
<!-- Versions for plugins -->
<central-publishing-plugin.version>0.10.0</central-publishing-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<maven-clean-plugin.version>3.5.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>
<maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version>
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
<maven-shade-plugin.version>3.6.2</maven-shade-plugin.version>
<maven-source-plugin.version>3.4.0</maven-source-plugin.version>
<maven-surefire-plugin.version>3.5.5</maven-surefire-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
<version>${java.driver.version}</version>
</dependency>
<!-- Apache Commons Lang 3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<!-- Apache Commons IO -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<!-- Apache Commons Collections -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${commons-collections.version}</version>
</dependency>
<!-- Caffeine caching -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>${caffeine.version}</version>
</dependency>
<!-- Jackson -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- Semver for operations on versions -->
<dependency>
<groupId>org.semver4j</groupId>
<artifactId>semver4j</artifactId>
<version>${semver4j.version}</version>
</dependency>
<!-- Kerberos Auth provider support -->
<dependency>
<groupId>com.instaclustr</groupId>
<artifactId>cassandra-driver-kerberos</artifactId>
<version>${cassandra-driver-krb5.version}</version>
</dependency>
<!-- Jakarta annotations -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.version}</version>
</dependency>
<!-- Lombok annotations -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>optional</scope>
</dependency>
<!-- AWS Auth provider support -->
<dependency>
<groupId>software.aws.mcs</groupId>
<artifactId>aws-sigv4-auth-cassandra-java-driver-plugin</artifactId>
<version>${aws-sigv4-auth-cassandra.version}</version>
<exclusions>
<!-- Dependencies already provided through import of AWS Secret manager below, exclude them here to
ensure the Amazon Secrets manager client works with the appropriate dependencies versions. -->
<exclusion>
<artifactId>profiles</artifactId>
<groupId>software.amazon.awssdk</groupId>
</exclusion>
<exclusion>
<artifactId>auth</artifactId>
<groupId>software.amazon.awssdk</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- AWS Secrets manager -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>secretsmanager</artifactId>
<version>${aws-secretsmanager.version}</version>
</dependency>
<!-- Astra SDK for integration with AstraDB -->
<dependency>
<groupId>com.datastax.astra</groupId>
<artifactId>astra-sdk-devops</artifactId>
<version>${astra-sdk-devops.version}</version>
</dependency>
<!-- OpenCSV for implementation of COPY special command -->
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>${opencsv.version}</version>
</dependency>
<!-- Unit tests libraries -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
<!-- Embedded Cassandra for unit tests -->
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-cassandra</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-junit-jupiter</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<!-- LocalStack containers for tests using Amazon Secrets manager -->
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-localstack</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<!-- Pool manager for pooled connections testing -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>${hikaricp.version}</version>
<scope>test</scope>
</dependency>
<!-- Handy to build the CQL queries -->
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-query-builder</artifactId>
<version>${java.driver.version}</version>
<scope>test</scope>
</dependency>
<!-- Logging for tests -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<!-- Approval tests -->
<dependency>
<groupId>com.approvaltests</groupId>
<artifactId>approvaltests</artifactId>
<version>${approvaltests.version}</version>
<scope>test</scope>
</dependency>
<!-- Dotenv for tests only running locally (integration with DBaaS) -->
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>dotenv-java</artifactId>
<version>${dotenv.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Configuration for resources filtering -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- Cleaning -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
</plugin>
<!-- Resources management -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<configuration>
<encoding>${encoding}</encoding>
<propertiesEncoding>${encoding}</propertiesEncoding>
</configuration>
</plugin>
<!-- Enforcer -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banDuplicatePomDependencyVersions/>
<reactorModuleConvergence/>
<requireReleaseDeps/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Compilation -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<encoding>${encoding}</encoding>
<release>${java.version}</release>
<parameters>true</parameters>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<!-- Tests running -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<!-- Checkstyle -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>checkstyle-config.xml</configLocation>
<consoleOutput>true</consoleOutput>
</configuration>
<executions>
<execution>
<id>checkstyle</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<dependencies>
<!-- Enforce the version of Checkstyle used by the plugin. -->
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<!-- Specific building profiles -->
<profiles>
<!-- 'release' profile is used for releasing of stable versions only. -->
<profile>
<id>release</id>
<build>
<plugins>
<!-- Generate sources jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generate Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
<!-- GPG artifacts signing -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
<!-- Publishing on Maven Central -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<deploymentName>Cassandra JDBC Wrapper deployment</deploymentName>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- 'bundle' profile creates jar including dependencies and should be used for bundling of stable versions
only. -->
<profile>
<id>bundle</id>
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<createSourcesJar>false</createSourcesJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<finalName>${project.artifactId}-${project.version}-bundle</finalName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- 'disableDseTests' excludes integration tests using DataStax Enterprise server. This can be handy if
these specific tests failed for some reason in a local environment. -->
<profile>
<id>disableDseTests</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<excludes>
<exclude>*DseContainerTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>