Migration Guide from 4.x to 4.3

用于 Apache Cassandra 的 Spring Data 4.3 已将 com.datastax.oss 组 ID 迁移至 org.apache.cassandra

Spring Data for Apache Cassandra 4.3 has migrated the com.datastax.oss groupId to org.apache.cassandra.

Migration of the Datastax driver into Apache

在将 Datastax Driver 迁移到 Apache Foundation 中,你需要更新你代码中的 Driver 坐标。考虑以下示例,展示 Maven 项目配置的先前潜在状态:

With the migration of the Datastax driver into the Apache foundation, you need to update coordinates of the driver in your code. Consider the following example showing a potential previous state of a Maven project configuration:

Example 1. pom.xml Example up to 4.2.x
<dependency>
	<groupId>com.datastax.oss</groupId>
	<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
	<groupId>com.datastax.oss</groupId>
	<artifactId>java-driver-query-builder</artifactId>
</dependency>

在将组 ID 从 com.datastax.oss 升级至 org.apache.cassandra 后,你的项目配置将如下所示:

With upgrading the groupId from com.datastax.oss to org.apache.cassandra your project configuration would look like:

Example 2. pom.xml Example since to 4.3.x
<dependency>
	<groupId>org.apache.cassandra</groupId>
	<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
	<groupId>org.apache.cassandra</groupId>
	<artifactId>java-driver-query-builder</artifactId>
</dependency>